EventSetter Constructor (RoutedEvent, Delegate)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes a new instance of the EventSetter class, using the provided event and handler parameters.

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

public EventSetter(
	RoutedEvent routedEvent,
	Delegate handler


Type: System.Windows.RoutedEvent

The particular routed event that the EventSetter responds to.

Type: System.Delegate

The handler to assign in this setter.

This signature is typically used if you creating an EventSetter in code, or in code-behind to create an EventSetter that augments an existing style prior to use.

.NET Framework
Available since 3.0
Return to top