Share via


Shift Property (KeyboardEventArgs)

Gets a value specifying whether the Shift key was down when the event occurred.

XAML
This property cannot be used in XAML.
Scripting
value = eventargs.Shift

Property Value

Boolean

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

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

Remarks

Use this property to detect key combinations involving the Shift key that are otherwise interpreted as commands or gestures in other application programming models.

Applies To

KeyboardEventArgs

See Also

Silverlight Keyboard Support
Silverlight Events