Udostępnij za pośrednictwem


Keyboard.Modifiers Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the set of ModifierKeys that are currently pressed.

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

Syntax

'Declaration
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

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.