private void ShowView(NativeView vc) { if (vc != null) { BringSubviewToFront(vc); } }
private void InitPanels(Control firstControlToPlace, Control secondControlToPlace) { mainPanel = new Control(); sidePanel1 = new Control(); sidePanel2 = new Control(); //mainPanel.SuspendLayout(); //sidePanel1.SuspendLayout(); //sidePanel2.SuspendLayout(); //mainPanel.Dock = DockStyle.Fill; //mainPanel.MinimumSize = new Size(DefaultMinWidth, DefaultMinWidth); //mainPanel.Visible = true; //mainPanel.Orientation = IsHorizontal ? Orientation.Horizontal : Orientation.Vertical; mainPanel.Add(sidePanel2, sidePanel1); //mainPanel.FixedPanel = sidePanel1; //mainPanel.FillPanel = sidePanel2; //firstControlToPlace.Dock = DockStyle.Fill; //secondControlToPlace.Dock = DockStyle.Fill; sidePanel1.Add(firstControlToPlace); //sidePanel1.Controls.SetChildIndex(firstControlToPlace, 0); //sidePanel1.OverlayResizeZoneThickness = 5; //sidePanel1.MinimumSize = GetMinSize(new Size(DefaultMinWidth, DefaultMinHeight), firstControlToPlace.MinimumSize); sidePanel2.Add(secondControlToPlace); //sidePanel2.Controls.SetChildIndex(secondControlToPlace, 0); //sidePanel2.OverlayResizeZoneThickness = 5; //sidePanel2.MinimumSize = GetMinSize(new Size(DefaultMinWidth, DefaultMinHeight), secondControlToPlace.MinimumSize); //Size innerControlsSize = Size.Add(sidePanel1.MinimumSize, sidePanel2.MinimumSize); //mainPanel.MinimumSize = GetMinSize(mainPanel.MinimumSize, innerControlsSize); //sidePanel1.ResumeLayout(); //sidePanel2.ResumeLayout(); //mainPanel.ResumeLayout(); }
private void HideView(NativeView vc) { if (vc != null) { SendSubviewToBack(vc); } }
/// <summary> /// Layouts the controls. /// </summary> /// <param name="layoutInfo">The layout information.</param> /// <param name="firstItem">The first item.</param> /// <param name="secondItem">The second item.</param> /// <exception cref="ArgumentNullException">firstItem</exception> public void LayoutControls(IModelSplitLayout layoutInfo, ViewItem firstItem, ViewItem secondItem) { if (firstItem == null) { throw new ArgumentNullException("firstItem"); } if (secondItem != null) { this.layoutInfo = layoutInfo; singleControl = null; InitPanels((Control)firstItem.Control, (Control)secondItem.Control); FillMap(firstItem, secondItem); ApplyModel(); } else { singleControl = (Control)firstItem.Control; //singleControl.Dock = DockStyle.Fill; } }
public NavigationRenderer() { NativeView = new NativeView(); }