I have a window with a background image over which I need to position two buttons.
The window currently contains a grid - but it can be any panel as all I need are the buttons.
Because this will run on different screen sizes the background image will stretch to fill the screen so absolute positioning of the buttons is not going to work.
I am looking for something like the html
margin: 20% auto 0 auto; // 20% of screen height top margin and centering horizontally.
Is there something in XAML that natively supports this?
Currently I am writing code in the ContentRendered handler to get screen height and width and apply margins to the buttons with code.
Is this the only way?