Reorders the siblings of a Visual so that the Visual will be rendered on top.

Note that it doesn't affect the Visual's ZOffset. Instead, it reorders the Visual amongst its siblings so that it will be drawn on top. This means that using ZOffset can still cause this Visual to be rendered underneath its siblings.

Example

<ScrollView>
    <Grid Rows="400, 1*" Margin="10">
        <Panel>
            <Rectangle Margin="10" CornerRadius="4" ux:Name="topRect">
                <LinearGradient>
                    <GradientStop Offset="0" Color="#a542db" />
                    <GradientStop Offset="1" Color="#3579e6" />
                </LinearGradient>
            </Rectangle>
            <TextBlock ux:Name="textBehind" Alignment="Center" FontSize="20" Color="#fff">I was brought to the front!</TextBlock>
        </Panel>
        <Rectangle Margin="10">
            <Stroke Offset="4" Width="1" Color="#3579e6" />
            <Button Text="Bring element to front" Alignment="Bottom">
                <Clicked>
                    <BringToFront Target="textBehind" />
                </Clicked>
            </Button>
        </Rectangle>
    </Grid>
</ScrollView>

Location

Namespace
Fuse.Triggers.Actions
Package
Fuse.Controls 1.9.0

Interface of BringToFront

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