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

Definición

Se le llama cuando el IsChecked propiedad pasa a ser true.Called when the IsChecked property becomes true. Este método provoca la Checked evento enrutado.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 de evento para el evento Checked.The event data for the Checked event.

Comentarios

El control provoca la Checked eventos mediante una llamada a RaiseEvent.The control raises the Checked event by calling RaiseEvent. Para obtener más información, consulte Routed Events Overview.For more information, see Routed Events Overview.

Notas a los desarrolladores de herederos

Cuando se reemplaza OnChecked(RoutedEventArgs) en una clase derivada, asegúrese de llamar a la clase base OnChecked(RoutedEventArgs) método 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