コード例 #1
0
ファイル: DocksView.cs プロジェクト: masums/Crow
        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;
        }
コード例 #2
0
ファイル: DocksView.cs プロジェクト: masums/Crow
        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;
        }
コード例 #3
0
ファイル: DocksView.cs プロジェクト: masums/Crow
        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;
            }
        }
コード例 #4
0
ファイル: DocksView.cs プロジェクト: masums/Crow
 public void Undock(DockingView dv)
 {
 }