title: How can I disable portrait mode in Windows 8?
body: <p>I have developed a XAML / C# Windows 8 app which does not support portrait mode. I've opened the Package.appxmanifest in Visual Studio and disabled the the portrait and portrait-flipped mode under "supported rotations". This Created the following rotations preferences:</p>
  
  <pre><code>        &lt;InitialRotationPreference&gt;
            &lt;Rotation Preference="landscape" /&gt;
            &lt;Rotation Preference="landscapeFlipped" /&gt;
          &lt;/InitialRotationPreference&gt;
  </code></pre>
  
  <p>However, when I start my app in the simulator and rotate the simulator, the app still gets rotated in to portrait mode. how can I prevent this from happening?</p>
  
  <p>Thanks,</p>
  
  <p>Adrian</p>