Buttons in the corners?
Posted
by Rick Ratayczak
on Stack Overflow
See other posts from Stack Overflow
or by Rick Ratayczak
Published on 2010-05-23T19:53:27Z
Indexed on
2010/05/23
20:00 UTC
Read the original article
Hit count: 361
I'd like to have 4 buttons one in each corner of a window. But I want the stuff in the grid/window to be "behind" the buttons, as if they float on top. In html you would use the zOrder and absolute positioning.
<Grid x:Name="ButtonRoot">
<Button Name="bTopLeft" VerticalAlignment="Top" HorizontalAlignment="Left" />
<Button Name="bTopRight" VerticalAlignment="Top" HorizontalAlignment="Right" />
<Button Name="bBottomLeft" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
<Button Name="bBottomRight" VerticalAlignment="Bottom" HorizontalAlignment="Right" />
<!-- Other junk here -->
</Grid>
The problem is, the buttons will not be "over" things, as the things will "wrap" around the buttons. How do I achieve this effect?
© Stack Overflow or respective owner