Data behaviors

Data behaviors

Expression Studio 4.0

In Microsoft Expression Blend, 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 Add or modify a data store.

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

Expression Blend data behaviors

The following data behaviors are available in Expression 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.

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

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

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

    For more information about this action, see InvokeCommandAction.

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

SketchFlow data behaviors

You can create prototypes that display data by using the sample data feature in Microsoft Expression Blend. You can use data behaviors to represent user interaction with data.

The following conditional behavior is available in SketchFlow:

  • RemoveItemInListBoxAction   Use RemoveItemInListBoxAction to demonstrate removing an item from a list box. The RemoveItemInListBoxAction behavior works only inside a data template, and only to remove the list-box item that it is associated with from the from the data-bound list box in which it resides.

    For more information about this behavior, see RemoveItemInListboxAction.


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

See also

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.
© 2016 Microsoft