FrameworkElementFactory.AddHandler Method (RoutedEvent, Delegate)

 

Adds an event handler for the given routed event to the instances created by this factory.

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

public void AddHandler(
	RoutedEvent routedEvent,
	Delegate handler
)

Parameters

routedEvent
Type: System.Windows.RoutedEvent

Identifier object for the routed event being handled.

handler
Type: System.Delegate

A reference to the handler implementation.

.NET Framework
Available since 3.0
Return to top
Show: