HandledEventsToo Property
Collapse the table of content
Expand the table of content

EventSetter.HandledEventsToo Property


Gets or sets a value that determines whether the handler assigned to the setter should still be invoked, even if the event is marked handled in its event data.

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

public bool HandledEventsToo { get; set; }

Property Value

Type: System.Boolean

true if the handler should still be invoked; otherwise, false.


Setting the InvokeHandledEventsToo characteristics of how an event's handlers will be invoked must always be performed in code, in keeping with the general principle that there is no way to specify InvokeHandledEventsToo when assigning defined event handlers for instances directly to named events in XAML attribute syntax. Although setting this value in XAML does not generate any compile-time errors, the resulting XAML will produce a run-time exception when the style is used.

This property should not be used in XAML. See Remarks.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft