BringToFront Constructor uno
Creates a new BringToFront
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 usingZOffset
can still cause this Visual to be rendered underneath its siblings.
<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>
Creates a new BringToFront
The number of seconds after the start of the trigger that the action should be performed.
hide
hide
hide