我想用各种大小的windows10桌面测试我的uwp应用程序。我的是23"桌面(1920 * 1080)。但即使我从appx中选择一个窗口大小(例如:13.3"桌面(1280 * 720)) - 下面写的代码总是显示我桌面的分辨率。而且设计没有改变到选定的模式视图。如何在不同英寸的桌面上测试我的应用程序?不在移动设备上。
var displayInformation = DisplayInformation.GetForCurrentView();
GlobalVraiables.ScreenHeight= (int)displayInformation.ScreenHeightInRawPixels;//1080
GlobalVraiables.ScreenWidth= (int)displayInformation.ScreenWidthInRawPixels;//1920