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: 170
Top