EventTriggerBehavior Class

A behavior that listens for a specified event on its source and executes its actions when that event is fired.

Namespace: Microsoft.Xaml.Interactions.Core Namespace

Assembly: Microsoft.Xaml.Interactions (in Microsoft.Xaml.Interactions.dll)

public ref class EventTriggerBehavior sealed : ::Windows::UI::Xaml::DependencyObject, ::Microsoft::Xaml::Interactivity::IBehavior

Properties

Name

Description

EventTriggerBehavior.Actions Property

Gets the collection of actions associated with the behavior. This is a dependency property.

EventTriggerBehavior.AssociatedObject Property

Gets the DependencyObject to which the IBehavior is attached.

EventTriggerBehavior.EventName Property

Gets or sets the name of the event to listen for. This is a dependency property.

EventTriggerBehavior.SourceObject Property

Gets or sets the source object from which this behavior listens for events. If SourceObject is not set, the source will default to AssociatedObject. This is a dependency property.

Methods

Name

Description

EventTriggerBehavior.Attach Method

Attaches to the specified object.

EventTriggerBehavior.Detach Method

Detaches this instance from its associated object.

Fields

Name

Description

EventTriggerBehavior.ActionsProperty Field

Identifies the Actions dependency property.

EventTriggerBehavior.EventNameProperty Field

Identifies the EventName dependency property.

EventTriggerBehavior.SourceObjectProperty Field

Identifies the SourceObject dependency property.

Remarks

The following events are supported:

Consider implementing a custom behavior to respond to other events.