Share via


RoutedEvent Property

Gets or sets the owning object type and routed event name that will activate this trigger. Only the Loaded event is supported.

XAML
<object RoutedEvent="parentObjectType.Loaded" .../>
Scripting
value = object.routedEvent
object.RoutedEvent = "parentObjectType.Loaded"

Terms

Term Definition
parentObjectType The type of object to which this EventTrigger belongs, such as "Rectangle" or "Canvas."

Property Value

string

The RoutedEvent that will activate this trigger.

This property is read/write. The default value is an empty string.

Remarks

In Silverlight 1.0, the only event that you can use for an EventTrigger is the Loaded event.

For animations that are intended to trigger from events other than Loaded, create a conventional event handler, which can either be referenced in XAML attribute syntax or by adding it with AddEventListener. Within the event handler code, get a reference to a Storyboard (typically these are stored as Resources) and then call the Begin method on that Storyboard.

Applies To

EventTrigger

See Also

Interactive Animations Overview
Animation Overview
Loaded