The issue is caused by the two-way binding with the read-only property Value
- which is not supported:
"System.Windows.Markup.XamlParseException: A TwoWay or OneWayToSource binding cannot work on the read-only property 'Value' of type 'System.Collections.Generic.KeyValuePair`2[System.String,System.Boolean]'":
Because the two-way binding is not supported in the Microsoft's implementation of the KeyValuePair
you can either use one-way binding with property Value
or use an ObservableCollection<Custom_Class>
instead of Dictionary
I've prepared a sample project demonstrating the second approach. Please find it attached.
Hope this helps.
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.