public override void RemoveChild(GraphicObject child) { DockingView dv = child as DockingView; if (child == null) { throw new Exception("DocksView accept only DockingView as child"); } base.RemoveChild(child); childViews.Remove(dv); dv.docker = this; }
public override void AddChild(GraphicObject g) { DockingView dv = g as DockingView; if (g == null) { throw new Exception("DocksView accept only DockingView as child"); } base.AddChild(g); childViews.Add(dv); dv.docker = this; }
public void Dock(DockingView dv, Alignment pos) { switch (pos) { case Alignment.Top: if (rootStack?.Orientation != Orientation.Vertical) { this.Width = Measure.Stretched; } break; case Alignment.Bottom: this.Width = Measure.Stretched; break; case Alignment.Left: this.Height = Measure.Stretched; break; case Alignment.Right: this.Height = Measure.Stretched; break; } }
public void Undock(DockingView dv) { }