示例#1
0
        void SetDividerView(MGSplitDividerView divider)
        {
            if (divider != DividerView)
            {
                DividerView.RemoveFromSuperview();

                DividerView = divider;
                DividerView.SplitViewController = this;
                DividerView.BackgroundColor     = defaultCornerColor;
                if (IsShowingMaster())
                {
                    LayoutSubviews();
                }
            }
        }
示例#2
0
        void Setup()
        {
            // Configure default behaviour.
            viewControllers = new UIViewController[2];
//			CGRect divRect = View.Bounds;
//			if (Vertical) {
//				divRect.Y = SplitPosition;
//				divRect.Height = SplitWidth;
//			} else {
//				divRect.X = SplitPosition;
//				divRect.Width = SplitWidth;
//			}
            DividerView = new MGSplitDividerView(this);
            DividerView.BackgroundColor = defaultCornerColor;
            SplitPosition          = defaultSplitPosition;
            Vertical               = true;
            showsMasterInPortrait  = (TouchFactory.Instance.HideMasterPaneInOrientation & MasterOrientation.Portrait) == 0;
            showsMasterInLandscape = (TouchFactory.Instance.HideMasterPaneInOrientation & MasterOrientation.Landscape) == 0;
            MasterBeforeDetail     = true;
        }