locked
Splash screen orientations

    Question

  • When setting an image as a splash screen that contains text (application's title, copyright, etc.), how do you modify the display orientation when the device is in portait vs landscape mode so that the text is displayed correctly regardless of the device orientation?


    http://www.ThinqLinq.com http://www.LinqInAction.net - "LINQ In Action", The book is now available. Don't wait for the movie
    Friday, October 7, 2011 8:19 PM

Answers

  • Hi Jim,

    You will notice in all the samples that the orientation is correct when you are in portrait mode.  These all use a PNG for the splash screen logo.  Do you see something else?  Did you use the debugger/simulator or are you on a particular device?

    -Jeff


    Jeff Sanders (MSFT)
    Monday, October 10, 2011 1:05 PM
    Moderator
  • Hi Jim,

    The splash screen includes a required JPG or PNG image and an optional background color (the screen will use the app's tile background color if omitted). You do not need to take any additional action to handle orientation. When the device is in Portrait, for example, Windows will take care of showing your application's splash screen in the correct orientation. This may also influenced by whether you have set the "InitialRotationPreference" attribute in the application manifest. That value can be used to force your splash screen to be shown in a certain orientation on devices that support rotation.

    Hope this helps!

    Justin

    Friday, October 14, 2011 10:20 PM

All replies

  • Hi Jim,

    You will notice in all the samples that the orientation is correct when you are in portrait mode.  These all use a PNG for the splash screen logo.  Do you see something else?  Did you use the debugger/simulator or are you on a particular device?

    -Jeff


    Jeff Sanders (MSFT)
    Monday, October 10, 2011 1:05 PM
    Moderator
  • Hi Jim,

    The splash screen includes a required JPG or PNG image and an optional background color (the screen will use the app's tile background color if omitted). You do not need to take any additional action to handle orientation. When the device is in Portrait, for example, Windows will take care of showing your application's splash screen in the correct orientation. This may also influenced by whether you have set the "InitialRotationPreference" attribute in the application manifest. That value can be used to force your splash screen to be shown in a certain orientation on devices that support rotation.

    Hope this helps!

    Justin

    Friday, October 14, 2011 10:20 PM