I have a grid bound to a collection of users, each row is bound to a user.
class User { int Level {get;set;}}
How to implement two-way binding of a column HighLow:bool to a property Level:int on an entity User when to implement a conversion, converter needs to know the entity to
which current row is bound (conversion logic depends on some other properties of the entity).
I have found partial solution if one needs a one-way binding (readonly). In this case entity can be bound to Path property and converter gets the entity in its value parameter. Column name can be passed through converter parameter or through constructor. But it doesn't work in two-way scenario because in this example it isn't possible to convert back bool column value to User (passed through Path) property.
I am really stuck with this problem. Does somebody know a solution?
Thanks.