Click here to Skip to main content
15,919,434 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how to use dictionary in wpf also how to compare two dictionaries
Posted
Updated 27-Mar-13 4:53am
v2
Comments
Sergey Alexandrovich Kryukov 27-Mar-13 10:29am    
What dictionary control?
—SA
[no name] 27-Mar-13 11:09am    
The exact same way you would use any other collection. Instantiate one, add some data... the usual stuff. What exactly is the problem?

1 solution

The only way you can compare two dictionaries is to compare item by item. If you want to bind to a dictionary, you should be able to bind to the dictionary.Values property:

<ListBox ItemsSource="{Binding Path=Dictionary.Values}">
 
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