RoutedEvent.RoutingStrategy Property

Gets the routing strategy of the routed event.

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

'Declaration
Public ReadOnly Property RoutingStrategy As RoutingStrategy
'Usage
Dim instance As RoutedEvent
Dim value As RoutingStrategy

value = instance.RoutingStrategy

/** @property */
public RoutingStrategy get_RoutingStrategy ()

public function get RoutingStrategy () : RoutingStrategy

You cannot use this property in XAML.

Property Value

One of the enumeration values. The default is the enumeration default, Bubble.

By convention, tunneling routed events have the name prefix "Preview" and an associated bubbling event defined. It should be rare that there would be only a tunneling version and not a matching bubbling version For more information, see How to: Create a Custom RoutedEvent.

The value of this property originates from the RegisterRoutedEvent method that defines a RoutedEvent .Specifically, the value of RoutingStrategy is the routingStrategy parameter value that was passed to RegisterRoutedEvent.

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: