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

Change and control device orientation programmatically in Xamarin.forms

$
0
0

Hi,

Is there any cross-platform way to change/control device/UI orientation programmatically in Xamarin.forms ?

Suppose i an writing a cross-platform app using Xamarin.forms where i have 2 pages. After launching the app, first page(Camera View) will appear only in landscape mood. On that page i have a button. If i press that button then another page will appear modally only at portrait mood. Is it possible to achieve ? If yes then how can i do that ?

Any sample code on changing and controlling device orientation programmatically in Xamarin.forms will be very helpful.

Thanks in advance.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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