Key Class

A class that describes a general virtual key.

Definition

Namespace: BeeMobile.VirtualKeyboard
Assembly: BeeMobile.VirtualKeyboard.AVA.NET6 (in BeeMobile.VirtualKeyboard.AVA.NET6.dll) Version: 11.0.0.2+aef809e856abb10e94d0b4c45f10d1805addc36e
C#
public class Key : Button
Inheritance
Object    AvaloniaObject    Animatable    StyledElement    Visual    Layoutable    Interactive    InputElement    Control    TemplatedControl    ContentControl    Button    Key
Derived

Constructors

Key Creates a new instance of the Key class.

Properties

Icon If set, the icon will be displayed instead of the default KeyName on the Key.
KeyContent Contains the visual that should be shown inside the Key. If custom content is needed use the Content property instead.
KeyName The string representation of the Key.
SpecialKey If set, the button will be considered a SpecialKey.

Methods

OnKeyPressed Defines behaviour that happens on each key press.
OnKeyReleased Defines behaviour that happens on each key press.
OnPointerPressed
(Overrides Button.OnPointerPressed(PointerPressedEventArgs))
OnPointerReleased
(Overrides Button.OnPointerReleased(PointerReleasedEventArgs))
OnPropertyChanged
(Overrides Button.OnPropertyChanged(AvaloniaPropertyChangedEventArgs))

Events

KeyPressed A event that represents the action of pressing the Key.
KeyReleased A event that represents the action of releasing the Key.

Fields

_keyContent The underlying property for KeyContent.
_mute Mutes the default OnPointerPressed(PointerPressedEventArgs) and OnPointerReleased(PointerReleasedEventArgs) behaviour.
IconProperty If set, the icon will be displayed instead of the default KeyName on the Key.
KeyContentProperty Contains the visual that should be shown inside the Key. If custom content is needed use the Content property instead.
KeyNameProperty The string representation of the Key.
KeyPressedEvent A RoutedEvent that represents the action of pressing the Key.
KeyReleasedEvent A RoutedEvent that represents the action of releasing the Key.
SpecialKeyProperty If set, the button will be considered a SpecialKey.

See Also