private void HandleWillShowViewController(MTSplitViewController oSplitController, UIViewController oMasterController, UIBarButtonItem oBarBtnItm)
 {
     Console.WriteLine("WillShowViewController()");
     if (oBarBtnItm != null)
     {
         List<UIBarButtonItem> aItems = new List<UIBarButtonItem>(this.oToolbar.Items);
         aItems.Remove(oBarBtnItm);
         this.oToolbar.SetItems(aItems.ToArray(), true);
     }
     this.oPopoverController = null;
 }
 public DetailViewController(MTSplitViewController oSplitViewController)
     : base()
 {
     this.oSplitViewController = oSplitViewController;
 }
 private void HandleWillPresentViewController(MTSplitViewController oSplitController, UIPopoverController oPopoverController, UIViewController oMasterController)
 {
     Console.WriteLine("WillPresentViewController()");
 }
 private void HandleWillMoveSplitToPosition(MTSplitViewController oSplitControler, float fSplitPos)
 {
     Console.WriteLine("WillMoveSplitToPosition(): " + fSplitPos);
 }
 private void HandleWillHideViewController(MTSplitViewController oSplitController, UIViewController oMasterControler, UIBarButtonItem oBarBtnItm, UIPopoverController oPopover)
 {
     Console.WriteLine("WillHideViewController()");
     if (oBarBtnItm!= null)
     {
         oBarBtnItm.Title = "Popover";
         List<UIBarButtonItem> aItems = new List<UIBarButtonItem>(this.oToolbar.Items);
         aItems.Insert(0, oBarBtnItm);
         this.oToolbar.SetItems(aItems.ToArray(), true);
     }
     this.oPopoverController = oPopover;
 }
 private void HandleWillChangeSplitOrientationToVertical(MTSplitViewController oSplitController, bool bIsVertical)
 {
     Console.WriteLine("WillChangeSplitOrientationToVertical(): " + bIsVertical);
 }
 private float HandleConstrainSplitPosition(MTSplitViewController oSplitController, float fProposedPosition, SizeF oViewSize)
 {
     Console.WriteLine("ConstrainSplitPosition(): " + fProposedPosition);
     return fProposedPosition;
 }