Click here to Skip to main content
15,890,882 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Kevin Marois1-Jun-10 8:24
professionalKevin Marois1-Jun-10 8:24 
GeneralRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Lutosław1-Jun-10 8:50
Lutosław1-Jun-10 8:50 
GeneralRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Kevin Marois1-Jun-10 10:26
professionalKevin Marois1-Jun-10 10:26 
AnswerRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Pete O'Hanlon1-Jun-10 21:20
mvePete O'Hanlon1-Jun-10 21:20 
QuestionStoryboard animation should be infinite Pin
Tripathi Swati29-May-10 1:13
Tripathi Swati29-May-10 1:13 
AnswerRe: Storyboard animation should be infinite Pin
Not Active29-May-10 3:22
mentorNot Active29-May-10 3:22 
GeneralRe: Storyboard animation should be infinite Pin
Tripathi Swati31-May-10 0:13
Tripathi Swati31-May-10 0:13 
QuestionData Binding - I Don't Get It Pin
#realJSOP27-May-10 12:22
mve#realJSOP27-May-10 12:22 
I have the following XAML (there's actually more, but I thought it wouldn't be helpful since it's all the same only for different columns):

<ListView x:Name="InnerListView"  
          ScrollViewer.HorizontalScrollBarVisibility="Disabled" 
          x:FieldModifier="public" 
          BorderBrush="Black" BorderThickness="1" 
          ItemsSource="{Binding}" >
    <ListView.View>
        <GridView>
            <GridViewColumn Width="100" Header="Downloads" />
        </GridView>
    </ListView.View>
    <ListView.ItemTemplate>
        <DataTemplate>
            <DockPanel >
                <Grid DockPanel.Dock="Right" >
                    <Label Grid.Column="1" Content="{Binding Path=WpfDownloads}" />
                </Grid>


and in the code, I'm setting the list views data context to the observable collection of objects I'm trying to display:

InnerListView.DataContext = myList;


However, when the listview is displayed, all of the columns show "Namespace.Object".

What am I doing wrong?
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

AnswerRe: Data Binding - I Don't Get It Pin
Pete O'Hanlon27-May-10 12:34
mvePete O'Hanlon27-May-10 12:34 
GeneralRe: Data Binding - I Don't Get It Pin
#realJSOP27-May-10 23:23
mve#realJSOP27-May-10 23:23 
GeneralRe: Data Binding - I Don't Get It Pin
Pete O'Hanlon28-May-10 4:42
mvePete O'Hanlon28-May-10 4:42 
AnswerRe: Data Binding - I Don't Get It Pin
AspDotNetDev27-May-10 13:48
protectorAspDotNetDev27-May-10 13:48 
GeneralRe: Data Binding - I Don't Get It Pin
AspDotNetDev27-May-10 14:10
protectorAspDotNetDev27-May-10 14:10 
GeneralRe: Data Binding - I Don't Get It Pin
Not Active27-May-10 14:41
mentorNot Active27-May-10 14:41 
GeneralRe: Data Binding - I Don't Get It Pin
AspDotNetDev27-May-10 14:52
protectorAspDotNetDev27-May-10 14:52 
GeneralRe: Data Binding - I Don't Get It Pin
#realJSOP27-May-10 23:36
mve#realJSOP27-May-10 23:36 
GeneralRe: Data Binding - I Don't Get It Pin
#realJSOP27-May-10 23:49
mve#realJSOP27-May-10 23:49 
GeneralRe: Data Binding - I Don't Get It Pin
AspDotNetDev28-May-10 7:50
protectorAspDotNetDev28-May-10 7:50 
GeneralRe: Data Binding - I Don't Get It Pin
#realJSOP30-May-10 0:52
mve#realJSOP30-May-10 0:52 
QuestionDataBinding of Edit form Pin
mumumumu26-May-10 22:37
mumumumu26-May-10 22:37 
AnswerRe: DataBinding of Edit form Pin
theminidriver27-May-10 0:09
theminidriver27-May-10 0:09 
GeneralRe: DataBinding of Edit form Pin
mumumumu23-Jun-10 22:34
mumumumu23-Jun-10 22:34 
QuestionHow do I work with WIndows Forms in WPF? Pin
Xarzu26-May-10 9:14
Xarzu26-May-10 9:14 
AnswerRe: How do I work with WIndows Forms in WPF? Pin
Pete O'Hanlon26-May-10 10:05
mvePete O'Hanlon26-May-10 10:05 
QuestionSubclass Window? Pin
Kevin Marois26-May-10 7:54
professionalKevin Marois26-May-10 7:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.