Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Forcing page orientation change dynamically

$
0
0

This one is giving me a headache. I don't think there is an XForms API to set page orientation (sad), so it needs to be done device-specific way. Is there a third-party API to force page orientation dynamically? - otherwise I need to do this myself. (I'd actually rather do it myself instead of relying on a 3rd-party)

I was looking at this thread: http://forums.xamarin.com/discussion/43132/guide-lock-screen-orientation

GetSupportedInterfaceOrientations seems to be working fine for iOS, but it's only at app startup. I need to change orientation via user input such as a button click.

Ideally, I need a solution for all three platforms. I think WP is easy, and I haven't tried Android yet, but I can't seem to make progress with iOS.


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>