Skip to main content

OnClick Method

Invoked when an unhandled ClickEvent reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

protected virtual void OnClick(
RoutedEventArgs e
)

Parameters

  RoutedEventArgs
Data about the event.

See Also

Reference

MenuItem Class
Avalonia.Controls Namespace