Esempio n. 1
0
        private void SplitHotizontal(DockPane top, DockPane bottom)
        {
            top.x = clientX;
            top.y = clientY;
            //top.height = clientHeight / 2;
            top.width = clientWidth;

            bottom.x     = clientX;
            bottom.y     = top.y + top.height;
            bottom.width = clientWidth;
            //bottom.height = clientHeight - top.height;

            target    = top;
            child     = bottom;
            direction = DockSplitDirection.Hortizonal;
        }
Esempio n. 2
0
        private void SplitVertical(DockPane left, DockPane right)
        {
            left.x      = clientX;
            left.y      = clientY;
            left.height = clientHeight;
            //left.width = clientWidth / 2;

            right.x = left.x + left.width;
            right.y = clientY;
            //right.width = clientWidth - left.width;
            right.height = clientHeight;

            target    = left;
            child     = right;
            direction = DockSplitDirection.Vertical;
        }