Titlebar for DockedTabControl.
Inheritance: Label
Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DockedTabControl"/> class.
        /// </summary>
        /// <param name="parent">Parent control.</param>
        public DockedTabControl(Control parent)
            : base(parent)
        {
            Dock = Pos.Fill;

            m_TitleBar          = new TabTitleBar(this);
            m_TitleBar.Dock     = Pos.Top;
            m_TitleBar.IsHidden = true;
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DockedTabControl"/> class.
        /// </summary>
        /// <param name="parent">Parent control.</param>
        public DockedTabControl(Control parent)
            : base(parent)
        {
            Dock = Pos.Fill;

            m_TitleBar = new TabTitleBar(this);
            m_TitleBar.Dock = Pos.Top;
            m_TitleBar.IsHidden = true;
        }
Example #3
0
        public void TestTabTitleBar()
        {
            var control = new TabControl(canvas);
            var title = new TabTitleBar(control) { Text = "TabTitleBar" };

            GUI.Test(control, "TabTitleBar1");
        }