EventSetter Constructor (RoutedEvent^, Delegate^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

routedEvent
Type: System.Windows::RoutedEvent^

The particular routed event that the EventSetter responds to.

handler
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
Show: