Windows 8 phone orientation

Monkey Targets Forums/Windows 8/Windows 8 phone orientation

Dazza(Posted 2014) [#1]
Hi all,

I am pretty new to Monkey. I have a very simple test app which uses the ignition framework. The app runs in landscape mode.

I got this running on my android phone and tablet by setting the line to
#ANDROID_SCREEN_ORIENTATION="landscape"
in the config.monkey file.

When I try to build it for Windows 8 Phone (8.0 not 8.1) I am having trouble running it in landscape mode. There is nothing in the config.monkey file for setting the orientation.

The only thing I could find was the following line in the MainPage.xaml file:
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"

If I change this to landscape then the app does switch to landscape by still runs it as if it is a portrait application - the app just fills the left hand side of the screen with the right hand side being just black.

So, any idea on how I run my app correctly in landscape mode?

Cheers.

Daz.


Xaron(Posted 2014) [#2]
SupportedOrientations="Landscape" Orientation="Landscape"


should do it. At least it works on my side.


Dazza(Posted 2014) [#3]
Thanks Xaron. That worked a treat. Much appreciated.