Configure transitions between states. More...
Public Member Functions | |
void | ClearAnimations () |
Deletes all animations in a state transition. | |
TransitionAnimation | CreateAnimation (string targetPath, Property property) |
Creates an animation in a state transition. | |
void | DeleteAnimation (TransitionAnimation animation) |
Deletes an animation from a state transition. | |
Properties | |
IEnumerable< TransitionAnimation > | Animations [get] |
StateTransitionAnimationType | AnimationType [get, set] |
Gets or sets the easing function for the transition between states. | |
DirectionType | Direction [get, set] |
Gets or sets whether the transition applies to the transition from the StartState to the EndState, or to the transitions from both states: | |
string | DisplayText [get] |
double | Duration [get, set] |
Gets or sets the length of the transition between states in milliseconds. | |
State | EndState [get, set] |
Gets or sets the state where the transition ends. | |
State | StartState [get, set] |
Gets or sets the state from which the transition starts. | |
double | StartTime [get, set] |
Gets or sets the start time of the transition. | |
InterruptTimePolicy | TimePolicy [get, set] |
Gets or sets how how Kanzi handles interruption of the transition: | |
Configure transitions between states.
When you configure transitions between states you can set the start and end states of a transition, transition duration, how you want Kanzi to handle interruptions of a transition, the direction to which the transition applies, and manage transition animations.
Examples
To configure a state transition:
void ClearAnimations | ( | ) |
Deletes all animations in a state transition.
TransitionAnimation CreateAnimation | ( | string | targetPath, |
Property | property ) |
Creates an animation in a state transition.
A state transition animation animates the value of a property in a node which the animation targets. Before you can create an animation in a state transition, make sure that both states in the state transition contain a state object which targets the same node and the same property.
targetPath | The path to the node to which Kanzi applies the animation. |
property | The property to which Kanzi applies the animation. |
Examples
To create an animation in a state transition:
void DeleteAnimation | ( | TransitionAnimation | animation | ) |
Deletes an animation from a state transition.
animation | The animation you want to delete from a state transition. |
|
getset |
Gets or sets the easing function for the transition between states.
The type of the animation.
|
getset |
Gets or sets whether the transition applies to the transition from the StartState to the EndState, or to the transitions from both states:
The direction.
|
getset |
Gets or sets the length of the transition between states in milliseconds.
The duration.
|
getset |
Gets or sets the state where the transition ends.
The end state.
|
getset |
Gets or sets the state from which the transition starts.
The start state.
|
getset |
Gets or sets the start time of the transition.
The start time.
|
getset |
Gets or sets how how Kanzi handles interruption of the transition:
The time policy.