Share via


Windows Phone data behaviors

You can use data behaviors to interact with data in a variety of ways, including adding and modifying properties by using a data store, applying visual state changes based on data comparisons, and triggering specific actions based on changes to the data store.

For more information about the data store, see FluidMoveBehavior, FluidMoveSetTagBehavior, and the data store (Windows Phone).

The InvokeCommandAction and CallMethodAction actions are particularly useful when you are working with Views and ViewModels.

Windows Phone data behaviors

The following data behaviors are available for Windows Phone projects in Blend:

  • 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).

  • DataStateBehavior   Use the DataStateBehavior behavior to change a visual state based on whether a condition evaluates to True or to False.

    For more information about this behavior, see DataStateBehavior (Windows Phone).

  • FluidMoveSetTagBehavior   Use the FluidMoveSetTagBehavior behavior to create a data store or to write information to an existing data store.

    For more information about this behavior, see FluidMoveSetTagBehavior (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).

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

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