Interface orientations for separate pages

Semen Matusovskiy

Well-Known Member
Licensed User
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

Top