Interface orientations for separate pages

Usage.
1) Add pageOrientation module to your project.
2) After each ShowPage call setInterfaceOrientations function. For example, pageOrientations.setInterfaceOrientations (Page2, "LandscapeLeft, LandscapeRight")
3) If you want to ignore invalid orientation (let's say, in Page_Resize event), check getCurrentInterfaceOrientation value.

To disable animation during rotation, assign pageOrientations.isRotateAnimationEnabled = False.
 

Attachments

  • Orientation.zip
    9.5 KB · Views: 309
D

Deleted member 103

Guest
Thank you for these modules.
It's a pity that I only discovered it today, that would have saved me a lot of headaches. :)
 

Filippo

Expert
Licensed User
Longtime User
Hi @Semen Matusovskiy ,

as you probably already noticed, your code module does not work properly from iOS-16, i.e. the system does not respect the specified orientation.
I found something on stackoverflow, but I can't implement it myself.
Have you perhaps already changed something in the code module?
 
Top