Class KeyboardAction
Defines an action which can be registered in a KeyboardController
Inheritance
System.Object
KeyboardAction
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.UI
Assembly: Simplic.UI.dll
Syntax
public class KeyboardAction
Constructors
| Improve this Doc View SourceKeyboardAction(ModifierKeys, Key[], KeyboardAction.KeyboardActionHandler)
Create new Keybaord action
Declaration
public KeyboardAction(ModifierKeys modifiers, Key[] keys, KeyboardAction.KeyboardActionHandler handler)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.ModifierKeys | modifiers | List of modifiers keys |
System.Windows.Input.Key[] | keys | List of keys |
KeyboardAction.KeyboardActionHandler | handler | Handler which will be executed |
Properties
| Improve this Doc View SourceHandler
Handler which will be executed if the configureated buttons are pressed
Declaration
public KeyboardAction.KeyboardActionHandler Handler { get; set; }
Property Value
Type | Description |
---|---|
KeyboardAction.KeyboardActionHandler |
Keys
Keys which will be combined with modifiers
Declaration
public Key[] Keys { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.Key[] |
Modifiers
Modfier keys for this action
Declaration
public ModifierKeys Modifiers { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ModifierKeys |
PreviewKeyDown
If set to true, the keyboard event will be grabbed before the inner elements has the chance to pick them
Declaration
public bool PreviewKeyDown { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |