Click to Rate and Give Feedback
MSDN
MSDN Library
Collapse All/Expand All Collapse All
.NET Framework Class Library for Silverlight
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)
Visual Basic (Declaration)
Public Property RoutedEvent As RoutedEvent
C#
public RoutedEvent RoutedEvent { get; set; }
XAML Attribute Usage
<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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker