PlayTo Class
Play to a specific point in a timeline
Example
<StackPanel>
<Rectangle Width="150" Height="150" Margin="60" ux:Name="rect" CornerRadius="10" >
<Stroke ux:Name="rectStroke" Offset="10" Width="3" Color="#3579e6" />
<Timeline ux:Name="timeline" TimeMultiplier="0.4">
<Rotate>
<Keyframe DegreesZ="360" Time="1" />
</Rotate>
<Change Target="rect.Color">
<Keyframe Value="#3579e6" Time="1" />
</Change>
</Timeline>
</Rectangle>
<Slider Width="250" ux:Name="targetProgress" Value="0.5" Minimum="0" Maximum="1" />
<Button Text="Animate to" Alignment="Bottom">
<Clicked>
<PlayTo Target="timeline" Progress="{ReadProperty targetProgress.Value}" />
</Clicked>
</Button>
<Button ux:Name="resume" Text="Resume" Alignment="Bottom">
<Clicked>
<Resume Target="timeline" />
</Clicked>
</Button>
<Button Text="Pause" Alignment="Bottom">
<Clicked>
<Pause Target="timeline" />
</Clicked>
</Button>
<Button Text="Stop" Alignment="Bottom">
<Clicked>
<Stop Target="timeline" />
</Clicked>
</Button>
</StackPanel>
Location
- Namespace
- Fuse.Triggers.Actions
- Package
- Fuse.Triggers 1.11.2
Interface of PlayTo
Progress : double ux
Inherited from PlaybackAction
Target : IPlayback ux
Inherited from TriggerAction
AtProgress : float ux
Delay : float ux
The number of seconds after the start of the trigger that the action should be performed.
Direction : TriggerWhen ux
IsActive : bool ux
IsProgressTriggered : bool uno
OnUnrooted uno
PerformFromNode(Node) uno
ProgressWhen(float) : float uno
SourceFileName : string ux
hide
SourceLineNumber : int ux
hide
TargetNode : Node ux
Unroot uno
When : TriggerWhen ux
Inherited from PropertyObject
AddPropertyListener(IPropertyListener) uno
OnPropertyChanged(Selector, IPropertyListener) uno
OnPropertyChanged(Selector) uno
RemovePropertyListener(IPropertyListener) uno
Inherited from object
Equals(object) : bool uno
GetHashCode : int uno
GetType : Type uno
ToString : string uno
Attached UX Attributes
GlobalKey (attached by Resource) : string ux
Implemented Interfaces
ISourceLocation uno
hide