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

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

Example

<ScrollView>
    <Grid Rows="400, 1*" Margin="10">
        <Panel>
            <TextBlock ux:Name="textInFront" Alignment="Center" FontSize="20" Color="#fff">I'll be sent to the back!</TextBlock>
            <Rectangle Margin="10" CornerRadius="4" ux:Name="topRect">
                <LinearGradient>
                    <GradientStop Offset="0" Color="#a542db" />
                    <GradientStop Offset="1" Color="#3579e6" />
                </LinearGradient>
            </Rectangle>
        </Panel>
        <Rectangle Margin="10">
            <Stroke Offset="4" Width="1" Color="#3579e6" />
            <Button Text="Send element to back" Alignment="Bottom">
                <Clicked>
                    <SendToBack Target="textInFront" />
                </Clicked>
            </Button>
        </Rectangle>
    </Grid>
</ScrollView>

Location

Namespace
Fuse.Triggers.Actions
Package
Fuse.Controls 1.9.0

Interface of SendToBack

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