For not heaving headaches for a too long time i decided to write my own little generic class extending ObservableCollection
containing some Key-Value-Elements.
It's by far enough for small needs. It's properties are bindable by using {Binding Path=Key}
and {Path=Value}
.
Maybe this will be useful for somebody else:
using System.Collections.ObjectModel;
namespace MyNamespace{
public class BindableValuePairList<TK,TV> :
ObservableCollection<ValuePair<TK,TV>> { }
public class ValuePair<TK,TV> {
public ValuePair (TK key, TV value) {
Key = key;
Value= value;
}
public TK Key { get; set; }
public TV Value { get; set; }
}
}