In my WPF Caliburn.Micro application, I have a datagrid and a checkbox with a corresponding ModelView bool property. I need to bind the checkbox to one of the datagrid’s fields OneWay (which is easy). But also I want to bind the same checkbox to the property OneWayToSource. Could you please tell me how I can do that? I don’t see how Multibinding can help here.
Thanks.
I don’t know if this is a checkbox per row of the
DataGrid, or a checkbox for a row with a particular id or index. Either way, you can useTwoWaybinding, which will be the default anyway if your view model property has a getter and setter.Your view model property should point to the instance of the record that the
DataGridis binding to.E.g.
View Model
View