Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RoutedEventArgs Class
Collapse the table of content
Expand the table of content

RoutedEventArgs Class

Contains state information and event data associated with a routed event.


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

Public Class RoutedEventArgs _
	Inherits EventArgs

The RoutedEventArgs type exposes the following members.

Public methodRoutedEventArgsInitializes a new instance of the RoutedEventArgs class.
Public methodRoutedEventArgs(RoutedEvent) Initializes a new instance of the RoutedEventArgs class, using the supplied routed event identifier.
Public methodRoutedEventArgs(RoutedEvent, Object)Initializes a new instance of the RoutedEventArgs class, using the supplied routed event identifier, and providing the opportunity to declare a different source for the event.

Public propertyHandledGets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.
Public propertyOriginalSourceGets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.
Public propertyRoutedEventGets or sets the RoutedEvent associated with this RoutedEventArgs instance.
Public propertySourceGets or sets a reference to the object that raised the event.

Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodInvokeEventHandlerWhen overridden in a derived class, provides a way to invoke event handlers in a type-specific way, which can increase efficiency over the base implementation.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnSetSourceWhen overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Different RoutedEventArgs can be used with a single RoutedEvent. This class is responsible for packaging the event data for a RoutedEvent, providing extra event state information, and is used by the event system for invoking the handler associated with the routed event.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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

      System.Windows.RoutedPropertyChangedEventArgs(Of T)
© 2015 Microsoft