How to set IsReadOnly / IsEnabled on entire container like Panel or GroupBox using XAML?
问题 I have a MVVM application that contains multiple views with some complex IsReadOnly rules based on user permissions, view/edit mode and object state. I would like to set IsReadOnly and/or IsEnabled properties for entire groups of controls in the same container ( GroupBox / StackPanel / Grid / UserControl / etc.). The value of this property will be defined in ViewModel. I've got 3-6 different SomeGroupIsReadOnly properties per UserControl (with a large number of input controls like TextBox ,