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

Allow Rotation in one page only

$
0
0

Hi,
I have to build an application that need to be in Portait in all page except in one page where I want allow rotation.
I understand that's not possible using only Forms and I need to use custom renderer but I'm stuck on the Android imlementation.
I don't know well Android and I think I'm going to the wrong way.
I'm able to handle rotation change in the MainActivity Method
public override void OnConfigurationChanged (Configuration newConfig)
But I dont know how to retrieve the visible Page to allow rotation or not. And even if I retrieve it, I can't use the property RequestOrientation because the OnConfigurationChanged method will never be called again.

What is the best way to handle rotation ?

Thank in advance.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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