Play Constructor uno
Creates a new Play
Resume or start a video or timeline
This continues playing from where the video or timeline was paused (or from the start if Stop
was called).
A timeline will play either forward or backward, depending on the last play direction.
<Grid Rows="3*,1*" >
<Video ux:Name="video" Url="http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4" StretchMode="Uniform" />
<Button Text="Play">
<Clicked>
<Play Target="video" />
</Clicked>
</Button>
</Grid>
<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="{Property targetProgress.Value}" />
</Clicked>
</Button>
<Button ux:Name="play" Text="Play" Alignment="Bottom">
<Clicked>
<Play 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>
Creates a new Play
The number of seconds after the start of the trigger that the action should be performed.
hide
hide
hide