I have a WCF service that returns a List<KeyValuePair<long, string>> – I need to bind this to a DisplayMemberPath and the SelectedValuePath, anyone know how I might bind to the key and the value? goink I guess I have never run into this before…
Thanks
Hi if anyone is wondering this was a two step process…
1) I converted the list to an observable collection
1.a) in the ctor I populated it like this…
2) in the XAML I created a listbox
That actually worked, the idea was to create a dropdown but then my boss talked to some people and they decided they didn’t need that ability on that view shrug whatever, If anyone ever finds themselves in a similar position maybe this will help.