Compartir a través de


EventTrigger.RoutedEvent Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public Property RoutedEvent As RoutedEvent
public RoutedEvent RoutedEvent { get; set; }
<EventTrigger RoutedEvent="Loaded" .../>

Property Value

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

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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