How to hide tabbeddocument tabstrip

2 posts, 1 answers
  1. JulioR
    JulioR avatar
    26 posts
    Member since:
    Dec 2006

    Posted 16 Apr 2008 Link to this post


    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

  2. Answer
    Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 16 Apr 2008 Link to this post

    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.

    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top