<CheckBox x:Name="cb1" IsChecked="{Binding cb1Enabled}"/>
<CheckBox x:Name="cb2" IsEnabled="{Binding ElementName=cb1, Path=IsChecked}" IsChecked="{Binding cb2Enabled}">
I have this two CheckBoxes cb1 and cb2. Both are bound to 2 bools. cb1Enabled and cb2Enabled. As you can see, cb2 is enabled only when cb1 is checked and also it's IsChecked property is bound to the specific bool dependency property.
It's all well and fine but i'd like to uncheck cb2 when cb1 is unchecked and so, set the cb2Enabled to false. Is there a way to accomplish that?
So i think i can say that i want cb2's IsChecked property to be bound to the IsChecked property of cb1 and also to the cb2Enabled dp.