EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.
Ce sujet n'a pas encore été évalué - Évaluez ce sujet

DragEventArgs.Handled Property

April 12, 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

Cela vous a-t-il été utile ?
(1500 caractères restants)
Merci pour vos suggestions.
Afficher:
© 2014 Microsoft. Tous droits réservés.