Assembly: PresentationCore (in PresentationCore.dll)
Public Sub AddToEventRoute ( _ route As [%$TOPIC/ms598900_en-us_VS_110_3_0_0_0_0%], _ e As [%$TOPIC/ms598900_en-us_VS_110_3_0_0_0_1%] _ )
public void AddToEventRoute( [%$TOPIC/ms598900_en-us_VS_110_3_0_1_0_0%] route, [%$TOPIC/ms598900_en-us_VS_110_3_0_1_0_1%] e )
public: void AddToEventRoute( [%$TOPIC/ms598900_en-us_VS_110_3_0_2_0_0%]^ route, [%$TOPIC/ms598900_en-us_VS_110_3_0_2_0_1%]^ e )
member AddToEventRoute : route:[%$TOPIC/ms598900_en-us_VS_110_3_0_3_0_0%] * e:[%$TOPIC/ms598900_en-us_VS_110_3_0_3_0_1%] -> unit
This method can be used by content host elements (either those that implement IContentHost or those that don't) to add handlers for child elements to the EventRoute. Ordinarily, this is not required for UIElement, because handlers are automatically added for all elements found in a completed logical tree. However, in some cases where ContentElement and UIElement are mixed in templated trees, intervening elements that came from the template need to be added to a route. Both ContentElement and UIElement support a version of this method.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.