Titlebar for DockedTabControl.
Inheritance: Label
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
        public void TestTabTitleBar()
        {
            var control = new TabControl(canvas);
            var title = new TabTitleBar(control) { Text = "TabTitleBar" };

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