Handled Property
Collapse the table of content
Expand the table of content

DragEventArgs.Handled Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

Public Property Handled As Boolean

Property Value

Type: System.Boolean
true if the event is marked handled; otherwise, false. The default value is false.

If you read this value from event data, true indicates that a handler along the event route has already marked this event as handled. A value of false indicates that no handler has marked the event as handled. However, the value should not typically be true for reading purposes. Handlers that are attached for an already handled event are not invoked by routing through the Windows Phone event system and therefore, cannot transmit event data to handlers.

Events that use DragEventArgs event data cannot have handlers attached that are invoked even when another handler marks Handled as true. This is because AddHandler requires a RoutedEvent identifier, and the events that use DragEventArgs do not expose such an identifier.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2017 Microsoft