[]
        
(Showing Draft Content)

C1.WinUI.Core.C1KeyboardHelper.GetKey

GetKey Method

GetKey(KeyRoutedEventArgs)

Returns Windows.System.VirtualKey that was pressed.

Declaration
public static VirtualKey GetKey(KeyRoutedEventArgs keyEvent)
Public Shared Function GetKey(keyEvent As KeyRoutedEventArgs) As VirtualKey
Parameters
Type Name Description
KeyRoutedEventArgs keyEvent

Data from keyboard routed events, as well as related attached and Preview events.

Returns
Type Description
VirtualKey

true if the Command key is pressed, false otherwise.