WP7 full screen popup

How to make a popup to view the full width and height of the screen? I do not want to set explicit heights and widths to 480x800.

+4
source share
2 answers

Popup has pretty low performance on WP7, it doesn’t support rotation and is difficult to pick up, so to implement a full-screen pop-up window, you’d better use Grid , which by default will fill the page if you put it in the root of the Page .

+5
source

I am using this function:

 public static Size GetScreenSize() { return Application.Current.RootVisual.RenderSize; } 

As Derek points out, you need to handle the rotation, etc. by yourself.

+7
source

Source: https://habr.com/ru/post/1344137/


All Articles