Skip to main content
RoutedEvent Class
 
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.

Represents and identifies a routed event and declares its characteristics.

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

SystemObject
  System.WindowsRoutedEvent

[TypeConverterAttribute("System.Windows.Markup.RoutedEventConverter, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")]
public sealed class RoutedEvent
[TypeConverterAttribute("System.Windows.Markup.RoutedEventConverter, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")]
public ref class RoutedEvent sealed 
[<Sealed>]
[<TypeConverterAttribute("System.Windows.Markup.RoutedEventConverter, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")>]
type RoutedEvent = class end
<TypeConverterAttribute("System.Windows.Markup.RoutedEventConverter, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")>
Public NotInheritable Class RoutedEvent
NameDescription
System_CAPS_pubproperty

Gets the handler type of the routed event.

System_CAPS_pubproperty

Gets the identifying name of the routed event.

System_CAPS_pubproperty

Gets the registered owner type of the routed event.

System_CAPS_pubproperty

Gets the routing strategy of the routed event.

NameDescription
System_CAPS_pubmethod AddOwner

Associates another owner type with the routed event represented by a RoutedEvent instance, and enables routing of the event and its handling.

System_CAPS_pubmethod Equals

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethod GetHashCode

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethod GetType

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethod ToString

Returns the string representation of this RoutedEvent.(Overrides ObjectToString.)

This class contains the , , , and properties. None of these members can have null values.

This class has a XAML usage that is exclusively intended for providing the value of the property of an EventTrigger (or derived class), or for the property of an EventSetter (or derived class). For more information about EventTrigger, EventSetter, and the XAML usages for those classes, see Routed Events Overview.

<object property="eventName"/>
- or -
<object property="type.eventName"/>
eventName

An unqualified event name, equivalent to the property of the RoutedEvent field, not the actual member name of the RoutedEvent identifier field within a type. Without qualification, eventName must name an event as found in the type that is the of the current style containing the EventSetter or EventTrigger.

type

The type to use to qualify the event name. If provided without a prefix, type is expected to be a type within the default XAML namespace, and that can be mapped to an existing CLR type. For custom events, or events that are on types outside of the default XAML namespace, the string for type can include a prefix for a mapped XAML namespace. That XAML namespace should contain the XAML type that can map to a backing CLR type, and that CLR type should define the desired routed event identifier. For details on XAML namespace mapping, see XAML Namespaces and Namespace Mapping for WPF XAML.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top