DragEventArgs.Handled property

Applies to Windows and Windows Phone

Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.

Syntax


public bool Handled { get; set; }

Property value

Type: System.Boolean [.NET] | Platform::Boolean [C++]

true if the event is marked handled; otherwise, false. The default value is false.

Remarks

The events that use DragEventArgs for event data are routed events. Setting the value of the Handled property to true from an event handler can influence how a routed event behaves: it prevents handlers further along the route from being invoked. However, a handler that was attached by calling AddHandler with handledEventsToo is still invoked. For more info on the routed event concept, see Events and routed events overview.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

DragEventArgs
Events and routed events overview

 

 

Show:
© 2014 Microsoft