I create a stack and I want to show it in the center of the screen, so I want to set the margin-top and left of the stack depend on the device screen.
I try this code, but it did not work on the devices very well.
<Stack CssClass="MyTestStack">
</Stack>
.MyTestStack
{
background: #039795;
width: 90%;
height: 90%;
margin-top: 10%; //Exception
margin-left: 10%; //Exception
}