Freigeben über


GoToStateAction

You can use the GoToStateAction action to apply a trigger that activates a specified visual state.

To apply a GoToStateAction

  1. In the Assets panel, click Behaviors, and then drag GoToStateAction onto the object that you want to apply the action to. The Common Properties category appears in the Properties panel.

    HinweisHinweis

    The object to which the behavior is attached provides the context for the behavior.

  2. Optionally, in the Common Properties category, in the TargetObject box, you can select the object that you want to apply the behavior to. You can click the Artboard Element Picker Symbol "Elementauswahl der Zeichenfläche", and then click the object; or you can click Browse, and then select the object from a list of objects that appear on the artboard.

    GoToStateAction

  3. In the StateName box, select the state that you want the action to transition to.

  4. Select or clear the UseTransitions option. Selecting UseTransitions will enable a smooth transition, if defined, between states. Clearing UseTransitions will enable an instant switch between states.