This documentation is archived and is not being maintained.
RoutedEventArgs::RoutedEvent Property
Visual Studio 2010
Gets or sets the RoutedEvent associated with this RoutedEventArgs instance.
Assembly: PresentationCore (in PresentationCore.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | Attempted to change the RoutedEvent value while the event is being routed. |
You cannot set this value on a RoutedEventArgs that has already been routed (for instance, if you obtained the arguments through a handler). Attempting to do so will generate an exception. You can only set it on an instance that has not yet been used to generate an invocation of the event.
The value of RoutedEvent cannot be nullptr at any time.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: