Share via


Windows Phone conditional behaviors

In Blend for Visual Studio 2012, you can use Windows Phone conditional behaviors to link an action to event when a comparison evaluates to True. You can quickly apply conditions to actions by creating and modifying conditions in the Properties panel.

For more information, see Add a condition to a behavior (Windows Phone).

Windows Phone conditional behaviors

The following conditional behaviors are available in Blend for Windows Phone:

  • CallMethodAction   Use the CallMethodAction action to call a method on the DataContext of an element when an event occurs.

    For more information about this action, see CallMethodAction (Windows Phone).

  • ChangePropertyAction   Use the ChangePropertyAction action to easily either change or increment the property of an object.

    For more information about this action, see ChangePropertyAction (Windows Phone).

  • ControlStoryboardAction   Use a ControlStoryboardAction action to specify the state of the storyboard, such as Play, Pause, or Stopped.

    For more information about this action, see ControlStoryboardAction (Windows Phone).

  • GoToStateAction   Use the GoToStateAction action to easily activate a custom visual state.

    For more information about this action, see GoToStateAction (Windows Phone).

  • InvokeCommandAction   Use the InvokeCommandAction action to invoke a command exposed by the data source.

    For more information about this action, see InvokeCommandAction (Windows Phone).

  • PlaySoundAction   Use the PlaySoundAction action to play a sound when an action is triggered.

    For more information about this action, see PlaySoundAction (Windows Phone).

  • RemoveElementAction   Use the RemoveElementAction action to easily remove an element from a logical tree.

    For more information about this action, see RemoveElementAction (Windows Phone).

  • SetDataStoreValueAction   Use the SetDataStoreValueAction action to automatically adjust the values of your data store at run time.

    For more information about this action, see SetDataStoreValueAction (Windows Phone).