I\'d like to bind a Dictionary to a ListView in WPF. I\'d like to do this in such a way that the Values in the
Just posting what I derived from the above. You can place the below in a ObservableCollection
Made the Key read-only as they key probably shouldn't be changed. This needs Prism to work - or you can implement your own version of INotifyPropertyChanged instead
public class ObservableKvp : BindableBase
{
public K Key { get; }
private V _value;
public V Value
{
get { return _value; }
set { SetProperty(ref _value, value); }
}
public ObservableKvp(K key, V value)
{
Key = key;
Value = value;
}
}