Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 8 在Visual Studio Simulator for Windows 8应用程序中更改默认分辨率列表_Windows 8_Visual Studio 2012 - Fatal编程技术网

Windows 8 在Visual Studio Simulator for Windows 8应用程序中更改默认分辨率列表

Windows 8 在Visual Studio Simulator for Windows 8应用程序中更改默认分辨率列表,windows-8,visual-studio-2012,Windows 8,Visual Studio 2012,是否可以在Visual Studio Simulator for Windows 8应用程序中更改默认屏幕分辨率列表?根据我的发现,目前不可能 由此可知,“调色板中分辨率的可用性取决于视频卡支持的分辨率。”模拟器使用以下模式查找其他分辨率配置 C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Simulator\12.0\HardwareConfigurations\HardwareConfigurations*.xml

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

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


由此可知,“调色板中分辨率的可用性取决于视频卡支持的分辨率。”

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

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>

12-2160x1440
12英寸2160 x 1440(3:2140%)
1440
2160
12
140

这对我来说很管用,奇怪的是,即使微软的员工也声称这是可以做到的——模拟器是一个WPF应用程序,所以我使用Snoop查找下拉列表的数据上下文。然后我使用JustDecompile查看代码,找出内容的来源。你也可以将它们添加到Microsoft.Windows.simulator.ex中的配置部分e、 config如果喜欢.FWIW,则无法在Visual Studio 2013的设备窗格中扩展该列表,因为该列表是硬编码的。