KeyInterop.KeyFromVirtualKey Method (Int32)

 

Converts a Win32 Virtual-Key into WPF Key.

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

public static Key KeyFromVirtualKey(
	int virtualKey
)

Parameters

virtualKey
Type: System.Int32

The virtual key to convert.

Return Value

Type: System.Windows.Input.Key

The WPF key.

.NET Framework
Available since 3.0
Return to top
Show: