QueryContinueDragEventArgs.EscapePressed Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a Boolean value indicating whether the ESC key has been pressed.

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

public bool EscapePressed { get; }

Property Value

Type: System.Boolean

A Boolean value indicating whether the ESC key has been pressed. true if the ESC was pressed; otherwise, false.

By default, the QueryContinueDrag event sets the Action property to Cancel if the ESC key is pressed.

.NET Framework
Available since 3.0
Return to top
Show: