Shift (KeyboardEventArgs)

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

Gets a value that specifies whether the SHIFT key was down when a keyboard event occurred.

value = eventargs.Shift

Property Value

Type: Boolean

true if the SHIFT key was down when the event occurred; otherwise, false.

This property is technically read/write, but should be considered read-only because there is no reason to change the reported information. There is no default.

Managed Equivalent

Get the value of Keyboard.Modifiers and check for Shift.

Remarks

Use this property to detect key combinations involving the SHIFT key that are possibly interpreted as commands or gestures.

Applies To

KeyboardEventArgs