Edit

RoutedEventArgs Class

Definition

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

public ref class RoutedEventArgs : EventArgs
public class RoutedEventArgs : EventArgs
type RoutedEventArgs = class
    inherit EventArgs
Public Class RoutedEventArgs
Inherits EventArgs
Inheritance
RoutedEventArgs
Derived

Remarks

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.

Constructors

Name Description
RoutedEventArgs()

Initializes a new instance of the RoutedEventArgs class.

RoutedEventArgs(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.

RoutedEventArgs(RoutedEvent)

Initializes a new instance of the RoutedEventArgs class, using the supplied routed event identifier.

Properties

Name Description
Handled

Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.

OriginalSource

Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.

RoutedEvent

Gets or sets the RoutedEvent associated with this RoutedEventArgs instance.

Source

Gets or sets a reference to the object that raised the event.

Methods

Name Description
InvokeEventHandler(Delegate, Object)

When 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.

OnSetSource(Object)

When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes.

Applies to

See also