Stop Constructor uno
Creates a new Stop
Stop a video or timeline.
The position is set to the beginning, and the playback is stopped.
<Grid Rows="3*,1*" >
<Video ux:Name="video" Url="http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4" StretchMode="Uniform" />
<Grid Columns="1*,1*">
<Button Text="Start">
<Clicked>
<Resume Target="video" />
</Clicked>
</Button>
<Button Text="Stop">
<Clicked>
<Stop Target="video" />
</Clicked>
</Button>
</Grid>
</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="{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>
Creates a new Stop
The number of seconds after the start of the trigger that the action should be performed.
hide
hide
hide