Uredi

Deli z drugimi prek


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

RoutedEventArgs()

Initializes a new instance of the RoutedEventArgs class.

RoutedEventArgs(RoutedEvent)

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

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

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)

Applies to

See also