Automatically Hide TabStrip for Single Docked Tools

4 posts, 0 answers
  1. Fraser Tustian
    Fraser Tustian avatar
    18 posts
    Member since:
    Sep 2012

    Posted 19 Jan 2009 Link to this post

    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.
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 20 Jan 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Fraser Tustian
    Fraser Tustian avatar
    18 posts
    Member since:
    Sep 2012

    Posted 20 Jan 2009 Link to this post

    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
  5. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 21 Jan 2009 Link to this post

    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.
Back to Top