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)
- C#
- VB
- F#
protected virtual void OnClick(
RoutedEventArgs e
)
Protected Overridable Sub OnClick (
e As RoutedEventArgs
)
abstract OnClick :
e : RoutedEventArgs -> unit
override OnClick :
e : RoutedEventArgs -> unit
Parameters
- RoutedEventArgs
- Data about the event.