在 Visual Studio Simulator for Windows 8 应用程序中更改默认分辨率列表 [英] Change default resolution list in Visual Studio Simulator for Windows 8 Apps
本文介绍了在 Visual Studio Simulator for Windows 8 应用程序中更改默认分辨率列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以更改 Visual Studio Simulator for Windows 8 应用程序中的默认屏幕分辨率列表?
Is it possible to change the default screen resolution list in the Visual Studio Simulator for Windows 8 apps?
推荐答案
模拟器使用以下模式寻找额外的分辨率配置
The simulator looks for additional resolution configurations using the following pattern
C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Simulator\12.0\HardwareConfigurations\HardwareConfigurations*.xml
因此,如果您将以下 XML 复制到该文件夹中名为 HardwareConfigurations-SurfacePro3.xml
的文件中(您需要管理员权限),您将在列表中获得一个额外的条目,允许您模拟在Surface Pro 3.
So if you copy the following XML into a file called HardwareConfigurations-SurfacePro3.xml
in that folder (you need administrator rights) you get an extra entry in the list allowing you to simulate running on a Surface Pro 3.
<?xml version="1.0" encoding="UTF-8"?>
<ArrayOfHardwareConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<HardwareConfiguration>
<Name>12-2160x1440</Name>
<DisplayName>12" 2160 x 1440 (3:2, 140%)</DisplayName>
<Resolution>
<Height>1440</Height>
<Width>2160</Width>
</Resolution>
<DeviceSize>12</DeviceSize>
<DeviceScaleFactor>140</DeviceScaleFactor>
</HardwareConfiguration>
</ArrayOfHardwareConfiguration>
这篇关于在 Visual Studio Simulator for Windows 8 应用程序中更改默认分辨率列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文