RoutedEventArgs RoutedEventArgs RoutedEventArgs 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
RoutedEventArgsRoutedEventArgsRoutedEventArgsRoutedEventArgs
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

RoutedEventArgs() RoutedEventArgs() RoutedEventArgs() RoutedEventArgs()

Initializes a new instance of the RoutedEventArgs class.

RoutedEventArgs(RoutedEvent) RoutedEventArgs(RoutedEvent) RoutedEventArgs(RoutedEvent) RoutedEventArgs(RoutedEvent)

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

RoutedEventArgs(RoutedEvent, Object) RoutedEventArgs(RoutedEvent, Object) RoutedEventArgs(RoutedEvent, Object) 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.

Properties

Handled Handled Handled 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 OriginalSource OriginalSource OriginalSource

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

RoutedEvent RoutedEvent RoutedEvent RoutedEvent

Gets or sets the RoutedEvent associated with this RoutedEventArgs instance.

Source Source Source Source

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

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
InvokeEventHandler(Delegate, Object) InvokeEventHandler(Delegate, Object) InvokeEventHandler(Delegate, Object) 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.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnSetSource(Object) OnSetSource(Object) OnSetSource(Object) 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.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See Also