There is a checkbox and combobox. ComboBox should be inactive if there is a daw in CheckBox and active if it is not. I know how to do Binding in the standard case, when everything is the opposite - if IsChecked = true => then IsEnabled = true.
<CheckBox Name="CheckBox_Autoselect" IsChecked="True" /> <ComboBox IsEnabled="{Binding ElementName=CheckBox_Autoselect, Path=IsChecked}"> <ComboBoxItem Content="Type 1"/> <ComboBoxItem Content="Type 2"/> </ComboBox>
And if you need to do this: IsChecked = true => IsEnabled = false, is it possible to implement this in a similar way - only Binding, without C # code?