This documentation is archived and is not being maintained.

ContentElement.AddToEventRoute Method

Adds handlers to the specified EventRoute for the current ContentElement event handler collection.

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)

public void AddToEventRoute (
	EventRoute route,
	RoutedEventArgs e
)
public void AddToEventRoute (
	EventRoute route, 
	RoutedEventArgs e
)
public function AddToEventRoute (
	route : EventRoute, 
	e : RoutedEventArgs
)
You cannot use methods in XAML.

Parameters

route

The event route that handlers are added to.

e

The event data that is used to add the handlers. This method uses the RoutedEvent property of the arguments to create the handlers.

Use this method for content host elements (regardless whether they implement IContentHost) in order to add handlers for the content host child elements to the host EventRoute.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: