I have a control that I want to enable/disable based on a checkbox. I ended up using a binding with ElementName and Path:
<CheckBox
x:Name="Enabler" />
<ComboBox
IsEnabled="{Binding ElementName=Enabler,Path=IsChecked}" />
I have a control that I want to enable/disable based on a checkbox. I ended up using a binding with ElementName and Path:
<CheckBox
x:Name="Enabler" />
<ComboBox
IsEnabled="{Binding ElementName=Enabler,Path=IsChecked}" />
void AddManyControls()
{
var control = new Control();
ToolTip toolTip = new ToolTip
{
Content = "ToolTip Content"
}
ToolTipService.SetToolTip(control, toolTip);
}