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

Automatically Hide TabStrip for Single Docked Tools

3 Answers 74 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Fraser Tustian
Top achievements
Rank 1
Fraser Tustian asked on 19 Jan 2009, 10:45 PM
Greetings!

The default behaviour for the DockingManager framework is that when a tool window is docked, the associated tab strip is always displayed. This is fine in itself, but I'm keen to get it to only display when there are 2 or more tool windows in the one location. If there is a single tool window, I'm not wanting the tab strip to display (effectively emulating the behaviour of Visual Studio).

Is there by any chance a simple property that I can set to achieve this?

I suspect that I could make it happen by capturing docking events and accessing the TabStripElement property of the DefaultPresenter, but just wanting to check if the behaviour is already included as I suspect this is a common preference.

3 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 20 Jan 2009, 08:26 AM
Hello Fraser Tustian,

Thank you for your question. You can use TabStripVisible property of DockPanel object for this behavior.

Best wishes,
Julian Benkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Fraser Tustian
Top achievements
Rank 1
answered on 20 Jan 2009, 11:04 AM
Hey,

Thanks for your time in answering this.

I probably wasn't clear... my question was meant to be "is there any way to set the default behaviour of the DockingManager so that it only displays the TabStrip when there are 2 or more tool windows in a given location" - rather than capturing the events and doing it manually. I can see this as a pretty common desire so thought it might be built-in somewhere, but I'll take it from the answer given that it has to be done manually.

Time to inherit the control, methinks :)

Cheers,

FRASER
0
Julian Benkov
Telerik team
answered on 21 Jan 2009, 08:19 AM
Hi Fraser Tustian,

Thank you for your question.

When you set the TabStripVisisble property to false, the default behavior is hide if you have only one DockPanel window and automatic show for two or more DockPanel windows as it is the behavior in Visual Studio.

I hope this was helpful.

Greetings,
Julian Benkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Dock
Asked by
Fraser Tustian
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Fraser Tustian
Top achievements
Rank 1
Share this question
or