Partager via


Triggers

When you add an action to the artboard in Blend for Visual Studio 2012, an EventTrigger is created by default. You can use any of the additional built-in triggers in Blend by changing the trigger type. To change the trigger type, click New in the Trigger category in the Properties panel.

Blend triggers

The following triggers are available in Blend:

  • DataStoreChangedTrigger   Use the DataStoreChangedTrigger trigger to invoke an action based on a modification to a data store.

    For more information about this trigger, see DataStoreChangedTrigger.

  • DataTrigger   Use the DataTrigger trigger to invoke an action based on the value of a data-bound property.

    For more information about this trigger, see DataTrigger.

  • EventTrigger   Use the EventTrigger trigger to invoke an action based on an event such as a mouse click, a page loading, or another interaction.

    For more information about this trigger, see EventTrigger.

  • KeyTrigger   Use the KeyTrigger trigger to invoke an action when a combination of keys is pressed on the keyboard.

    For more information about this trigger, see KeyTrigger.

  • PropertyChangedTrigger   Use the PropertyChangedTrigger trigger to invoke an action based on a modification to an element or a data store property.

    For more information about this trigger, see PropertyChangedTrigger.

  • StoryboardCompletedTrigger   Use the StoryboardCompletedTrigger trigger to invoke an action after a storyboard has finished.

    For more information about this trigger, see StoryboardCompletedTrigger.

  • TimerTrigger   Use the TimerTrigger trigger to invoke an action based on a timer.

    For more information about this trigger, see TimerTrigger.

SketchFlow triggers

The following trigger is available in SketchFlow:

  • SketchFlowAnimationTrigger   Use the SketchFlowAnimationTrigger trigger to trigger a particular action, for example, playing a sound when the animation pauses or triggering a state change.

    For more information about this trigger, see SketchFlowAnimationTrigger.

[!REMARQUE]

You can use all the triggers in available in Blend in SketchFlow projects. However, SketchFlow triggers are available only in SketchFlow projects.

Voir aussi

Concepts

Working with built-in behaviors

Working with built-in SketchFlow behaviors