I have just started using WPF and am having trouble data binding from the result of a Linq query to a ListView.
I have tried a number of combinations including setting the DataContext and ItemsSource to the query. As in:
listView.DataContext = (from person in People select person).ToList();
Then in the xaml setting the DisplayMemberBinding to {Binding Name} or {Binding /Name} etc.
I'm not worried about any updating either way other than just showing a list of items from the query at this stage.
So I guess i'm missing some pretty basic knowledge with WPF but this part of it seems to have a rather steep learning curve so maybe a nudge in the right direction of some example code would be good. It seems that most code involves a lot of creation of dataviews or notifying datatypes or at least binding to local objects rather than straight from a query.