Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change default resolution list in Visual Studio Simulator for Windows 8 Apps

Is it possible to change the default screen resolution list in the Visual Studio Simulator for Windows 8 apps?

like image 775
user250773 Avatar asked Nov 01 '12 20:11

user250773


1 Answers

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

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>

Surface Pro 3 resolution in simulator

like image 52
Jesper Larsen-Ledet Avatar answered Oct 06 '22 12:10

Jesper Larsen-Ledet