5

是否可以在 Visual Studio Simulator for Windows 8 应用程序中更改默认屏幕分辨率列表?

4

2 回答 2

14

模拟器使用以下模式查找其他分辨率配置

C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Simulator\12.0\HardwareConfigurations\HardwareConfigurations*.xml

因此,如果您将以下 XML 复制到该文件HardwareConfigurations-SurfacePro3.xml夹​​中调用的文件中(您需要管理员权限),您会在列表中获得一个额外的条目,允许您在 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>

模拟器中的 Surface Pro 3 分辨率

于 2014-12-16T09:19:14.000 回答
0

根据我的发现,目前是不可能的。

从这篇文章中,它说“调色板中分辨率的可用性取决于您的视频卡支持的分辨率。

于 2013-04-17T16:54:57.253 回答