/// <summary> /// Called after the view rotated /// This override forwards the DidRotate callback on to each of the panel containers /// </summary> /// <param name="fromInterfaceOrientation">From interface orientation.</param> public override void DidRotate(UIInterfaceOrientation fromInterfaceOrientation) { base.DidRotate(fromInterfaceOrientation); if (MenuContainer != null) { MenuContainer.DidRotate(fromInterfaceOrientation); } if (SubMenuContainer != null) { SubMenuContainer.DidRotate(fromInterfaceOrientation); } if (DetailContainer != null) { DetailContainer.DidRotate(fromInterfaceOrientation); } }
/// <summary> /// Called every time after the Panel is hidden /// </summary> /// <param name="animated">If set to <c>true</c> animated.</param> public override void ViewDidDisappear(bool animated) { if (MenuContainer != null) { MenuContainer.ViewDidDisappear(animated); } if (SubMenuContainer != null) { SubMenuContainer.ViewWillAppear(animated); } if (DetailContainer != null) { DetailContainer.ViewWillAppear(animated); } base.ViewDidDisappear(animated); }
/// <summary> /// Called when the view will rotate. /// This override forwards the WillRotate callback on to each of the panel containers /// </summary> /// <param name="toInterfaceOrientation">To interface orientation.</param> /// <param name="duration">Duration.</param> public override void WillRotate(UIInterfaceOrientation toInterfaceOrientation, double duration) { base.WillRotate(toInterfaceOrientation, duration); if (MenuContainer != null) { MenuContainer.WillRotate(toInterfaceOrientation, duration); } if (SubMenuContainer != null) { SubMenuContainer.WillRotate(toInterfaceOrientation, duration); } if (DetailContainer != null) { DetailContainer.WillRotate(toInterfaceOrientation, duration); } }
/// <summary> /// Called every time the Panel is about to be shown /// </summary> /// <param name="animated">If set to <c>true</c> animated.</param> public override void ViewWillAppear(bool animated) { View.Frame = CreateViewPosition(); if (MenuContainer != null) { MenuContainer.ViewWillAppear(animated); } if (SubMenuContainer != null) { SubMenuContainer.ViewWillAppear(animated); } if (DetailContainer != null) { DetailContainer.ViewWillAppear(animated); } base.ViewWillAppear(animated); }