Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
KeyFromVirtualKey Method
Collapse the table of content
Expand the table of content

KeyInterop.KeyFromVirtualKey Method

Converts a Win32 Virtual-Key into WPF Key.

Namespace:  System.Windows.Input
Assembly:  WindowsBase (in WindowsBase.dll)

public static Key KeyFromVirtualKey(
	int virtualKey


Type: System.Int32

The virtual key to convert.

Return Value

Type: System.Windows.Input.Key
The WPF key.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft