Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can I use a list box with Key Value Pair List/Dictionary in Windows Phone 8.
Posted

1 solution

You can't pass a Dictionary or any other multiple value collection to a ListBox without specifying which part of the list you want the ListBox to show.

So, to use a Dictionary as an example, you would probably want to display just the Keys:
MyListBox.DataSource = MyDictionary.Keys();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900