Is there a way of checking the CheckBox
without running the code associated to checking it? Just for visual appearance.
Edit:
private void normalCheck_Checked(object sender, RoutedEventArgs e)
{
normal();
}
Imagine that I want to set the normalCheckBox.IsChecked=true;
but without raising the event. Is that possible?
One way would be to detach the event handler, set the IsChecked
property, and then reattach it.
myCheckbox.Checked -= myCheckbox_Checked;
myCheckbox.IsChecked = true;
myCheckbox.Checked += myCheckbox_Checked;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With