Table of Contents

Class KeyBinding

Namespace
Avalonia.Input
Assembly
Avalonia.Base.dll
public class KeyBinding : AvaloniaObject, INotifyPropertyChanged
Inheritance
KeyBinding
Implements
Inherited Members
Extension Methods

Constructors

KeyBinding()

public KeyBinding()

Fields

CommandParameterProperty

public static readonly StyledProperty<object> CommandParameterProperty

Field Value

StyledProperty<object>

CommandProperty

public static readonly StyledProperty<ICommand> CommandProperty

Field Value

StyledProperty<ICommand>

GestureProperty

public static readonly StyledProperty<KeyGesture> GestureProperty

Field Value

StyledProperty<KeyGesture>

Properties

Command

public ICommand Command { get; set; }

Property Value

ICommand

CommandParameter

public object CommandParameter { get; set; }

Property Value

object

Gesture

public KeyGesture Gesture { get; set; }

Property Value

KeyGesture

Methods

TryHandle(KeyEventArgs)

public void TryHandle(KeyEventArgs args)

Parameters

args KeyEventArgs