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.
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 .
Popup
Grid
Page
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.
Source: https://habr.com/ru/post/1344137/More articles:Get the number of columns in a query or structure in ColdFusion - coldfusionPercona and MySQL Workbench - mysqlHow to stretch CALayer while maintaining integral origin? - iphoneF # Azure Web Role - f #Magento: can two modules extend the same base model? - overrideUsing White / UIAutomation How to get the right-click context menu - ui-automationRuby on Rails Global Array - ruby-on-railsto hide the warning about the removal of the directory - visual-studio-2010Magento Integration with ERP and Dynamic Pricing - e-commerceProgrammatic Java EE 6 login: how to catch a LoginException? - java-ee-6All Articles