Stop a video or timeline.

The position is set to the beginning, and the playback is stopped.

Video Example

<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>

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.9.0

Interface of Stop

Inherited from PlaybackAction

Inherited from TriggerAction

AtProgress : float ux

A value between 0 and 1 for when the action should be performed. Alternative to Delay.

Delay : float ux

The number of seconds after the start of the trigger that the action should be performed.

TargetNode : Node ux

The node that the action targets. If not specified then the enclsoing Trigger will be used. Several triggers can look for a target starting from this point. Some triggers require a Target to be specified.

Unroot uno

Called when the owner of this object is unrooted. This gives an action to cleanup resources or cancel pending actions.

Inherited from PropertyObject

Inherited from object

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The ux:Global attribute creates a global resource that is accessible everywhere in UX markup.

Implemented Interfaces