Language

ToggleButton.Unchecked Event

Definition

Occurs when a ToggleButton is unchecked.

public:
 event System::Windows::RoutedEventHandler ^ Unchecked;
public event System.Windows.RoutedEventHandler Unchecked;
member this.Unchecked : System.Windows.RoutedEventHandler 
Public Custom Event Unchecked As RoutedEventHandler 

Event Type

Examples

The following example changes subscribes to the Checked and UncheckedEvent events to change the FontStyle of the TextBlock, textBlock1.




  The quick brown fox jumps over the lazy dog.

void chkbox_Unchecked(object sender, RoutedEventArgs e)
{
    textBlock1.FontStyle = FontStyles.Normal;
}

void chkbox_Checked(object sender, RoutedEventArgs e)
{
    textBlock1.FontStyle = FontStyles.Italic;
}
Private Sub chkbox_Unchecked(ByVal sender As Object, ByVal e As RoutedEventArgs)
    textBlock1.FontStyle = FontStyles.Normal
End Sub

Private Sub chkbox_Checked(ByVal sender As Object, ByVal e As RoutedEventArgs)
    textBlock1.FontStyle = FontStyles.Italic
End Sub

Remarks

Routed Event Information

Item Value
Identifier field UncheckedEvent
Routing strategy Bubbling
Delegate RoutedEventHandler

Applies to