IsEditable in ViewModel

Topics: Questions
Feb 5, 2013 at 10:37 AM

In my view i want to disable some textboxes. So bind this textboxes to the IsEditable Property of the viewmodelbase.

But how can I set the IsEditable Property to false.

Have nested usercontrols. So I set the Datacontext of the view to the model. The Value of the IsEditable is in the parentviewmodel

<Views:UnitView DataContext="{Binding CurrentUnit}" IsEditable={Binding Editable}/>
Feb 7, 2013 at 1:43 PM
The IsEditable property comes from the ModelBase, and is a wrapper around IsReadOnly (thus the opposite).