RoutedEvent Property
Collapse the table of content
Expand the table of content

EventTrigger.RoutedEvent Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the name of the event that initiates the trigger.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

Public Property RoutedEvent As RoutedEvent
<EventTrigger RoutedEvent="Loaded" .../>

Property Value

Type: System.Windows.RoutedEvent
The name or identifier of the event. See Remarks.

In XAML you specify this as a string. In code, pass the identifier (a RoutedEvent value). The only supported value in is Loaded/FrameworkElement.LoadedEvent.

See Remarks in EventTrigger regarding limitations on event triggers and which events can initiate a trigger.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2016 Microsoft