public ChannelTabControl()
        {
            Padding = new MarginPadding {
                Left = 50
            };

            TabContainer.Spacing = new Vector2(-SHEAR_WIDTH, 0);
            TabContainer.Masking = false;

            AddTabItem(selectorTab = new ChannelSelectorTabItem());

            ChannelSelectorActive.BindTo(selectorTab.Active);
        }
Beispiel #2
0
        public ChannelTabControl()
        {
            TabContainer.Margin = new MarginPadding {
                Left = 50
            };
            TabContainer.Spacing = new Vector2(-SHEAR_WIDTH, 0);
            TabContainer.Masking = false;

            AddInternal(new SpriteIcon
            {
                Icon   = FontAwesome.Solid.Comments,
                Anchor = Anchor.CentreLeft,
                Origin = Anchor.CentreLeft,
                Size   = new Vector2(20),
                Margin = new MarginPadding(10),
            });

            AddTabItem(selectorTab = new ChannelSelectorTabItem());

            ChannelSelectorActive.BindTo(selectorTab.Active);
        }