Skip to main content

OnAccessKey Method

This method is used to execute the action on an effective IInputElement when a corresponding access key has been invoked. By default, the Focus() method is invoked with the NavigationMethod.Tab to indicate a visual focus adorner. Overwrite this method if other methods or additional functionality is needed when an item should receive the focus.

Definition

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

protected override void OnAccessKey(
RoutedEventArgs e
)

Parameters

  RoutedEventArgs
AccessKeyEventArgs are passed on to indicate if there are multiple matches or not.

See Also

Reference

TabItem Class
Avalonia.Controls Namespace