EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

EventTrigger.RoutedEvent Property

July 28, 2014

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 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 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

Anzeigen:
© 2014 Microsoft