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.
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.