This is a migrated thread and some comments may be shown as answers.

ToolTabStrip Caption

1 Answer 87 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Dawid
Top achievements
Rank 1
Dawid asked on 31 Jan 2012, 02:38 PM
I have a problem with docking toolTabStrip.

In starting position is ok (caption toolTabstrip is hidden  , but when I dock this control and undock then caption of  toolTabStrip is show.

Files below are describe this problem.

1 Answer, 1 is accepted

Sort by
0
stefan stefanov
Top achievements
Rank 1
answered on 01 Feb 2012, 10:43 AM
Hi Dawid. 

You can try to use the AutoHideWindowDisplaying event, where you can control the text of both the tab item and the caption. Here is a sample snippet:
void radDock1_AutoHideWindowDisplaying(object sender, AutoHideWindowDisplayingEventArgs e)
{
    ToolWindow tw = e.NewWindow as ToolWindow;
    if (tw != null)
    {
        string saveText = tw.Text;
        tw.Text = "";
        tw.AutoHideTab.Text = saveText;
    }
}


Tags
Dock
Asked by
Dawid
Top achievements
Rank 1
Answers by
stefan stefanov
Top achievements
Rank 1
Share this question
or