RoutedEventArgs Constructor (RoutedEvent)

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

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

public:
RoutedEventArgs(
	RoutedEvent^ routedEvent
)

Parameters

routedEvent
Type: System.Windows::RoutedEvent

The routed event identifier for this instance of the RoutedEventArgs class.

When using this overloaded constructor, unspecified properties of the new RoutedEventArgs instance assume the following default values:

Null values for Source and OriginalSource only mean that this RoutedEventArgs makes no attempt to specify the source. When this instance is used in a call to RaiseEvent, the Source and OriginalSource values are populated based on the element that raised the event and are passed on to listeners through the routing.

The following example constructs a new RoutedEventArgs for use in a call to RaiseEvent.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft