IsEditable in ViewModel

Topics: Questions
Feb 5, 2013 at 9:37 AM
Hello.

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}/>
???
Coordinator
Feb 7, 2013 at 12:43 PM
The IsEditable property comes from the ModelBase, and is a wrapper around IsReadOnly (thus the opposite).