Configure transitions between states. More...
Public Member Functions | |
void | ClearAnimations () |
Deletes all animations in a state transition. More... | |
TransitionAnimation | CreateAnimation (string targetPath, Property property) |
Creates an animation in a state transition. More... | |
void | DeleteAnimation (TransitionAnimation animation) |
Deletes an animation from a state transition. More... | |
Properties | |
IEnumerable< TransitionAnimation > | Animations [get] |
StateTransitionAnimationType | AnimationType [get, set] |
Gets or sets the easing function for the transition between states. More... | |
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: More... | |
string | DisplayText [get] |
double | Duration [get, set] |
Gets or sets the length of the transition between states in milliseconds. More... | |
State | EndState [get, set] |
Gets or sets the state where the transition ends. More... | |
State | StartState [get, set] |
Gets or sets the state from which the transition starts. More... | |
double | StartTime [get, set] |
Gets or sets the start time of the transition. More... | |
InterruptTimePolicy | TimePolicy [get, set] |
Gets or sets how how Kanzi handles interruption of the transition: More... | |
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 |
|
getset |
|
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.