/// <summary>
 /// Initializes a new instance of the <see cref="SplitPanelView"/> class.
 /// </summary>
 /// <param name="menu">Menu</param>
 /// <param name="detail">Detail page</param>
 public MasterPanelContainer(float menuMaxWidth, float subMenuMaxWidth, MenuPanelContainer menu, SubMenuPanelContainer subMenu, DetailPanelContainer detail)
 {
     MenuContainer    = menu;
     SubMenuContainer = subMenu;
     //SubMenuContainer.IsVisible = false;
     DetailContainer = detail;
 }
        protected void DisplayNewChildView(UIViewController newChildView, PanelType type)
        {
            PanelContainer newPanel = null;

            switch (type)
            {
            case PanelType.MenuPanel:
                newPanel = new MenuPanelContainer(this, newChildView, 150);
                break;

            case PanelType.SubMenuPanel:
                newPanel = new SubMenuPanelContainer(this, newChildView, 200);
                break;

            case PanelType.DetailPanel:
                newPanel = new DetailPanelContainer(this, newChildView, 350);
                break;
            }

            if (newPanel == null)
            {
                return;
            }
            AddChildViewController(newPanel);
            View.AddSubview(newPanel.View);
            newPanel.DidMoveToParentViewController(null);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="SplitPanelView"/> class.
 /// </summary>
 /// <param name="menu">Menu</param>
 /// <param name="detail">Detail page</param>
 public MasterPanelContainer(float menuMaxWidth, float subMenuMaxWidth, MenuPanelContainer menu, SubMenuPanelContainer subMenu, DetailPanelContainer detail)
 {
     MenuContainer = menu;
     SubMenuContainer = subMenu;
     //SubMenuContainer.IsVisible = false;
     DetailContainer = detail;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="SplitPanelView"/> class.
        /// </summary>
        public MasterPanelContainer(float menuMaxWidth, float subMenuMaxWidth)
        {
            MenuContainer = new MenuPanelContainer(this, new EmptyView(UIColor.Yellow), menuMaxWidth);

            SubMenuContainer           = new SubMenuPanelContainer(this, new EmptyView(UIColor.Brown), subMenuMaxWidth);
            SubMenuContainer.IsVisible = false;

            DetailContainer = new DetailPanelContainer(this, new EmptyView(UIColor.Magenta), menuMaxWidth + subMenuMaxWidth);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="SplitPanelView"/> class.
        /// </summary>
        public MasterPanelContainer(float menuMaxWidth, float subMenuMaxWidth)
        {
            MenuContainer = new MenuPanelContainer(this, new EmptyView(UIColor.Yellow), menuMaxWidth);

            SubMenuContainer = new SubMenuPanelContainer(this, new EmptyView(UIColor.Brown), subMenuMaxWidth);
            SubMenuContainer.IsVisible = false;

            DetailContainer = new DetailPanelContainer(this, new EmptyView(UIColor.Magenta), menuMaxWidth + subMenuMaxWidth);
        }
        protected void DisplayNewChildView(UIViewController newChildView, PanelType type)
        {
            PanelContainer newPanel = null;
            switch (type)
            {
                case PanelType.MenuPanel:
                    newPanel = new MenuPanelContainer(this, newChildView, 150);
                    break;
                case PanelType.SubMenuPanel:
                    newPanel = new SubMenuPanelContainer(this, newChildView, 200);
                    break;
                case PanelType.DetailPanel:
                    newPanel = new DetailPanelContainer(this, newChildView, 350);
                    break;
            }

            if (newPanel == null)
                return;
            AddChildViewController(newPanel);
            View.AddSubview(newPanel.View);
            newPanel.DidMoveToParentViewController(null);
        }