title: programmatically change orientation from Landscape to Portrait Mode xamarin IOS
body: <p>I am developing an app with Xamarin MVVMCross technology and would like to ask a question about InterfaceOrientation option: all view controllers of application support all orientations but one should use only Portrait mode.
  When I go to that ViewController from others in Portrait mode, I am able to keep my portrait viewcontroller in Portrait mode due to method in my AppDelegate.cs :</p>
  
  <pre><code>[Export("application:supportedInterfaceOrientationsForWindow:")]
  public UIInterfaceOrientationMask GetSupportedInterfaceOrientations(UIApplication application, IntPtr forWindow)
  {
      if (this.RestrictRotation)
          return UIInterfaceOrientationMask.All;
      else
          return UIInterfaceOrientationMask.Portrait;
  } 
  </code></pre>
  
  <p>But when I go to my portraitview controller when device in LandscapeLeft(LandscapeRight) orientations, GetSupportedInterfaceOrientations from AppDelegate.cs method is not called and that view controller is opened in Landscape mode.
  Is there a way to programmatically change orientation from Landscape to Portrait Mode just for one view controller in Xamarin IOS?</p>
  
  <p>Thank you</p>