Friday, 23 August 2013

WPF DataGrid Binding List of Object that contains Dictionary in XAML

WPF DataGrid Binding List of Object that contains Dictionary in XAML

I'm trying to figure out how to display the data from a dictionary
property of a list inside a WPF DataGrid GridViewColumn
All the examples I find only appear to map to list of simple entities that
can be . traversed like {Binding Answers.Title}. Mine however would be
more like {Binding Answers["Title"]} which doesn't work in XAML
I'm missing something obvious here. Any ideas?
Edit: The list contains an entity that contains a Dictionary. Where
Answers is the dictionary in the entity.

No comments:

Post a Comment