How do I make a Popup take up the full width and height of the screen? I don't want to set explicit height and width of 480x800.
I use this function:
public static Size GetScreenSize()
{
return Application.Current.RootVisual.RenderSize;
}
As Derek points out, you need to handle rotation, etc, yourself.
Popup has quite poor performance on WP7, doesn't support rotation and is difficult to size, so to implement a full screen popup you'd be better off using a Grid, which by default will fill the page if you put it at the root of the Page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With