Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

EventTrigger.RoutedEvent Property

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

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

public RoutedEvent RoutedEvent { get; set; }
<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 Silverlight is Loaded/FrameworkElement.LoadedEvent.

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

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft