EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

DragEventArgs.Handled Property

July 28, 2014

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 bool Handled { get; set; }

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

Mostra:
© 2014 Microsoft