RoutedEventArgs Class

 

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

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

System::Object
  System::EventArgs
    System.Windows::RoutedEventArgs
      System.Activities.Presentation.Toolbox::ToolCreatedEventArgs
      System.Windows.Controls::ActivatingKeyTipEventArgs
      System.Windows.Controls::CalendarDateChangedEventArgs
      System.Windows.Controls::CalendarModeChangedEventArgs
      System.Windows.Controls::CleanUpVirtualizedItemEventArgs
      System.Windows.Controls::ContextMenuEventArgs
      System.Windows.Controls::InkCanvasGestureEventArgs
      System.Windows.Controls::InkCanvasStrokeCollectedEventArgs
      System.Windows.Controls::KeyTipAccessedEventArgs
      System.Windows.Controls.Primitives::DragCompletedEventArgs
      System.Windows.Controls.Primitives::DragDeltaEventArgs
      System.Windows.Controls.Primitives::DragStartedEventArgs
      System.Windows.Controls.Primitives::ScrollEventArgs
      System.Windows.Controls.Ribbon::RibbonDismissPopupEventArgs
      System.Windows.Controls.Ribbon::RibbonQuickAccessToolBarCloneEventArgs
      System.Windows.Controls::ScrollChangedEventArgs
      System.Windows.Controls::SelectionChangedEventArgs
      System.Windows.Controls::TextChangedEventArgs
      System.Windows.Controls::ToolTipEventArgs
      System.Windows.Controls::ValidationErrorEventArgs
      System.Windows.Data::DataTransferEventArgs
      System.Windows::DataObjectEventArgs
      System.Windows::DpiChangedEventArgs
      System.Windows::DragEventArgs
      System.Windows::ExceptionRoutedEventArgs
      System.Windows::GiveFeedbackEventArgs
      System.Windows.Input::AccessKeyPressedEventArgs
      System.Windows.Input::CanExecuteRoutedEventArgs
      System.Windows.Input::ExecutedRoutedEventArgs
      System.Windows.Input::InputEventArgs
      System.Windows::MediaScriptCommandRoutedEventArgs
      System.Windows.Navigation::RequestNavigateEventArgs
      System.Windows::QueryContinueDragEventArgs
      System.Windows::RequestBringIntoViewEventArgs
      System.Windows::RoutedPropertyChangedEventArgs<T>
      System.Windows::SizeChangedEventArgs
      System.Windows::SourceChangedEventArgs

public ref class RoutedEventArgs : EventArgs

NameDescription
System_CAPS_pubmethodRoutedEventArgs()

Initializes a new instance of the RoutedEventArgs class.

System_CAPS_pubmethodRoutedEventArgs(RoutedEvent^)

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

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

NameDescription
System_CAPS_pubpropertyHandled

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

System_CAPS_pubpropertyOriginalSource

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

System_CAPS_pubpropertyRoutedEvent

Gets or sets the RoutedEvent associated with this RoutedEventArgs instance.

System_CAPS_pubpropertySource

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

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

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

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnSetSource(Object^)

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

System_CAPS_pubmethodToString()

Returns 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
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

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

Return to top
Show: