Click here to Skip to main content
12,885,226 members (37,070 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


3 bookmarked
Posted 18 Oct 2011

Windows Phone 7.5 XNA Game Orientation in Mixed Mode

, 10 Jan 2013 CPOL
Rate this:
Please Sign up or sign in to vote.
How to set orientation to landscape mode for XNA game in mixed mode (Silverlight & XNA)


Maybe this will save someone some time.
When you create a Windows Phone Silverlight and XNA project, the XNA part will be set to Portrait mode.
To change it to Landscape, you need to:

  • Set orientation of XNA page to landscape
  • Replace in App.xaml:


    <xna:SharedGraphicsDeviceManager PreferredBackBufferWidth="800" 
    PreferredBackBufferHeight="480"  />

    if all of your XNA pages will be in this resolution. If not, you can set in code for each XNA page.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Pawel Gielmuda
Software Developer ABB
Poland Poland
No Biography provided

You may also be interested in...

Comments and Discussions

QuestionReverse ? Pin
AmitDey14-Oct-12 3:19
memberAmitDey14-Oct-12 3:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170424.1 | Last Updated 10 Jan 2013
Article Copyright 2011 by Pawel Gielmuda
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid