RoutedEventArgs Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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() |
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
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
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from 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() |
Creates a shallow copy of the current Object. (Inherited from 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() |
Returns a string that represents the current object. (Inherited from Object) |