❔ Someone Can help me to Bind a Dictionary on XAML file (I'm an apprentice)
so I research and i don't find who correctly bind my Dictionnary on a xaml page i use an converter but it still don't work a really need help rapidly thank you to have read this message (I'm french, sorry if my english is not really good)
2 Replies
So first, you dont have to convert a dictionary into a list of KeyValuePairs. Dictionary already provides an enumerator for
IEnumerable<KeyValuePair<T, V>>
If you just use the dictionary, then your Binding should work. Given that the Key actually is an object with a property Nom
You also have to use some kind of notification system. Either implement INotifiyPropertyChanged
yourself or use a nuget package that does that for you, like CommunityToolkit.Mvvm
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.