MindFusion.Wpf Pack Programmer's Guide
Key Members
Constructors Properties Methods Events
 


Represents a key in the keyboard.

The following tables list the members exposed by the Key type.

 Protected Constructors

  Name Description

Key

 

 Public Properties

  Name Description

Alt

The alt virtual key. Virtual Key = 18

AltGr

The alt gr virtual key. Virtual Key = 165

Backspace

The backspace virtual key.

CapsLock

The caps lock virtual key.

Content

Gets or sets the key's text content. Some descendant key classes send their content as input to currently focused control; other ones only store their labels in it.

Context

The context menu virtual key.

Ctrl

The control virtual key. Virtual Key = 17

Delete

The delete virtual key.

End

The end virtual key.

Enter

The enter virtual key. Virtual Key = 13

Esc

The escape virtual key.

F1

The F1 virtual key.

F10

The F10 virtual key.

F11

The F11 virtual key.

F12

The F12 virtual key.

F2

The F2 virtual key.

F3

The F3 virtual key.

F4

The F4 virtual key.

F5

The F5 virtual key.

F6

The F6 virtual key.

F7

The F7 virtual key.

F8

The F8 virtual key.

F9

The F9 virtual key.

Height

The key's height.

Home

The home virtual key.

Image

Gets or sets relative path to an image that should be displayed inside this key.

Insert

The insert virtual key.

IsHovered

Gets whether the key is hovered by mouse.

IsLocked

IsLocked. Used only for shift, alt, altgr, control, caps lock and num lock.

IsPressed

Set to true when this key is pressed down by the user.

IsSelected

IsSelected

KeyDown

The key down virtual key.

KeyLeft

The key left virtual key.

KeyRight

The key right virtual key.

KeyUp

The key up virtual key.

Lang

Language rotation virtual key.

Left

Horizontal position of the key.

Num5

The numpad 5 virtual key.

NumDelete

The numpad delete virtual key.

NumDiv

The numpad / virtual key.

NumEnd

The numpad end virtual key.

NumHome

The numpad home virtual key.

NumInsert

The numpad insert virtual key.

NumKeyDown

The numpad key-down virtual key.

NumKeyLeft

The numpad key-left virtual key.

NumKeyRight

The numpad key-right virtual key.

NumKeyUp

The numpad key-up virtual key.

NumLock

The num lock virtual key.

NumMinus

The numpad - virtual key.

NumMult

The numpad * virtual key.

NumPageDown

The numpad page down virtual key.

NumPageUp

The numpad page up virtual key.

NumPlus

The numpad + virtual key.

PageDown

The page down virtual key.

PageUp

The page up virtual key.

PauseBreak

The pause / break virtual key.

PrtScr

The Print Screen virtual key.

ScrollLock

The scroll lock virtual key.

Shift

The shift virtual key. Virtual Key = 16

Space

The space virtual key.

Tab

The tab virtual key.

Top

Vertical position of the key.

Width

The key's width.

Windows

The Windows virtual key.

 Public Methods

  Name Description

Clone

Clones this key.

Equals

Returns a value indicating whether this instance and a specified Key object represent the same value.

GetHashCode

Returns a hash code for this Key.

GetVirtualKeyCode

Gets the virtual key code corresponding to a System.Windows.Input.Key value.

Send

Sends this key to the foreground window.

 Protected Methods

  Name Description

Copy

Copies the properties of this key to specified one.

 Public Events

  Name Description

PropertyChanged

PropertyChanged

 See Also

Key Class
MindFusion.UI.Wpf Namespace