Just bind the IsEnabled
property of the TextBox
to the IsChecked
property of the CheckBox
:
<CheckBox Name="checkBox1" />
<TextBox IsEnabled="{Binding ElementName=checkBox1, Path=IsChecked}" />
Just bind the IsEnabled
property of the TextBox
to the IsChecked
property of the CheckBox
:
<CheckBox Name="checkBox1" />
<TextBox IsEnabled="{Binding ElementName=checkBox1, Path=IsChecked}" />