ChangePropertyAction |
You can use the ChangePropertyAction behavior to easily either change or increment the property of an object and then, optionally, define a transition. By default, the transition is instantaneous.
To add a ChangePropertyAction
-
In the Assets panel, click Behaviors, and then drag ChangePropertyAction onto the object on the artboard that you want to apply the action to.
The Common Properties category appears in the Properties panel.
Note: The object to which the behavior is added provides the context within which this behavior operates.
-
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�, and then click the object, or you can click Browse and then select the object, data source, or data context from a list of resources that appear in the project.
-
In the PropertyName drop-down list, select the property that you want to change.
Note: The properties in the list will change depending on the object that you selected in the TargetObject box.
-
In the value editor, specify the change that you want for the property in the PropertyName box when the action is triggered.
Note: The value editor that appears will change depending on the properties that you selected in the PropertyName box. In the value editor, modify the properties that you want to change when the behavior is triggered.
-
Optionally, you can modify the transition by using the Animation Properties category in the Properties panel. In the Animation Properties category, do one or more of the following:
-
Duration���Specifies the length of the transition in an Hours:Minutes:Seconds.Milliseconds format (00:00:00.00). To animate something for 1 second, you would enter 00:00:01.00. To animate something for .2 seconds, you would enter 00:00:00.20.
-
Ease���Specifies what kind of easing function you want to apply. Ease is available only when Duration is explicitly set.
-
To see a sample of this behavior, visit the
��Copyright � 2010 by Microsoft Corporation. All rights reserved.