MenuItem.OnChecked(RoutedEventArgs) MenuItem.OnChecked(RoutedEventArgs) MenuItem.OnChecked(RoutedEventArgs) MenuItem.OnChecked(RoutedEventArgs) Method

Definición

Se invoca cuando el valor de la propiedad IsChecked cambia a true.Called when the IsChecked property becomes true. Este método genera el evento enrutado Checked.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)

Parámetros

e
RoutedEventArgs RoutedEventArgs RoutedEventArgs RoutedEventArgs

Datos para el evento Checked.The event data for the Checked event.

Comentarios

El control provoca el Checked evento llamando a RaiseEvent.The control raises the Checked event by calling RaiseEvent. Para obtener más información, vea información general sobre eventosenrutados.For more information, see Routed Events Overview.

Notas a los desarrolladores de herederos

Al reemplazar OnChecked(RoutedEventArgs) en una clase derivada, asegúrese de llamar al OnChecked(RoutedEventArgs) método de la clase base para que los delegados registrados reciban el evento.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.

Se aplica a