Keyboard.Modifiers Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the set of ModifierKeys that are currently pressed.

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

Syntax

Public Shared ReadOnly Property Modifiers As ModifierKeys
public static ModifierKeys Modifiers { get; }

Property Value

Type: System.Windows.Input..::.ModifierKeys
A bitwise combination of the enumeration values.

Remarks

ModifierKeys is a bit field (flags) enumeration, so it is possible for multiple modifier keys to be pressed at the same time. Use bitwise comparison operations to determine the exact set of modifier keys pressed.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

Keyboard Class

System.Windows.Input Namespace

ModifierKeys