SLXNA plus the acclerometer are a bad combination on WP7. I cannot lock down either landscape left or right so the screen will rotate. I tried to counter this using a rendertarget2d but this didn’t work one hundred percent because the click regions of the buttons are still flipped 180 degrees.
Any ideas?
Thanks
-ZS
As of right now it seems that this is a missing feature/bug with the SLXNA platform. There is no way to force the screen to be a specific landscape orientation. It will continue to flip between OrientationLeft and OrientationRight. There are several workarounds to this problem that I have devised, but none of them are ideal and all of them have their limitations. The best that I have found so far is to override the following function
in the Microsoft.Phone.Controls namespace. Then have a variable inside to keep track of the orientation changes. Then instead of rendering directly to a SpriteBatch render to a Rendertarget and then rotate it according to the variable you just modified. Now there is a drawback to this method and it is a big one: any touch controls do not flip. So you’ll have a bunch of weird errors with the touch controls and buttons not lining up, but as of the moment this appears to be the best workaround.