MenuItem.OnUnchecked(RoutedEventArgs) Method

Definition

Called when the IsChecked property becomes false. This method raises the Unchecked routed event.

protected:
 virtual void OnUnchecked(System::Windows::RoutedEventArgs ^ e);
protected virtual void OnUnchecked (System.Windows.RoutedEventArgs e);
abstract member OnUnchecked : System.Windows.RoutedEventArgs -> unit
override this.OnUnchecked : System.Windows.RoutedEventArgs -> unit
Protected Overridable Sub OnUnchecked (e As RoutedEventArgs)

Parameters

e
RoutedEventArgs

The event data for the Unchecked event.

Remarks

The control raises the Unchecked event by calling RaiseEvent. For more information, see Routed Events Overview.

Notes to Inheritors

When overriding OnUnchecked(RoutedEventArgs) in a derived class, be sure to call the base class' OnUnchecked(RoutedEventArgs) method so that registered delegates receive the event.

Applies to