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

How to hide tabbeddocument tabstrip

1 Answer 60 Views
Dock
This is a migrated thread and some comments may be shown as answers.
JulioR
Top achievements
Rank 1
JulioR asked on 16 Apr 2008, 01:33 PM
Hi,

I'm trying to hide the tabstrip for one tabbeddocument using the TabStripVisible properties but is doing nothing for this type od documents. Do you know any way to do this? Is this normal with tabbed documents?

To clarify, I have 2 docked documents (right & left) and a unique tabbed document in the middle of the form (so no need to have the tabstrip, as is & will be only one)

Thanks & regards

Julio

1 Answer, 1 is accepted

Sort by
0
Accepted
Julian Benkov
Telerik team
answered on 16 Apr 2008, 03:17 PM
Hi JulioR,

The TabStripVisible property of the DockingManager is used with the ToolWindow type of windows such as the DockPanel. To hide the tabstrip of document container, you can use the following code snippet:

DocumentPresenterControl presenter = (documentPane1.DefaultPresenter as DocumentPresenterControl);  
if (presenter != null)  
{  
    presenter.DocumentPresenterElement.TabStripElement.Visibility = ElementVisibility.Collapsed;  

I hope this helps. If you have any further questions, please contact me.

Greetings,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
JulioR
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or