Ejemplo n.º 1
0
        public TabControl(Orientation orientation = Orientation.Horizontal)
        {
            AnchorAll();

            GuiWidget tabPageArea = new GuiWidget();

            tabBar = new TabBar(FlowDirection.LeftToRight, tabPageArea);
            //tabBar.LocalBounds = new RectangleDouble(0, 0, 20, 20);
            base.AddChild(tabBar);
            //tabPageArea.BackgroundColor = new RGBA_Bytes(0, 255, 0, 50);
            base.AddChild(tabPageArea);
            tabPageArea.AnchorAll();
            this.Orientation = orientation;
        }
Ejemplo n.º 2
0
        public TabControl(Orientation orientation = Orientation.Horizontal)
        {
            AnchorAll();

            GuiWidget tabPageArea = new GuiWidget();

            tabBar = new TabBar(FlowDirection.LeftToRight, tabPageArea);

            base.AddChild(tabBar);
            base.AddChild(tabPageArea);

            tabPageArea.AnchorAll();

            this.Orientation = orientation;
        }