Beispiel #1
0
        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;
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
        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;
            }
        }
Beispiel #4
0
 public void Undock(DockingView dv)
 {
 }