Rediger

Del via


MenuItem.OnChecked(RoutedEventArgs) Method

Definition

Called when the IsChecked property becomes true. This method raises the Checked routed event.

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

Parameters

e
RoutedEventArgs

The event data for the Checked event.

Remarks

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

Notes to Inheritors

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

Applies to