Share via


Ctrl Property (KeyboardEventArgs)

Gets a value specifying whether the control (CTRL) key was down when the event occurred.

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

Property Value

Boolean

true if the CTRL 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 CTRL key that are otherwise interpreted as commands or gestures in other application programming models.

Note: This property corresponds to the "Control" key on the Macintosh.

Applies To

KeyboardEventArgs

See Also

Silverlight Keyboard Support
Silverlight Events