Auto Hide

4 posts, 0 answers
  1. mitch arias
    mitch arias avatar
    2 posts
    Member since:
    Jul 2008

    Posted 01 Jul 2009 Link to this post

    How can I specify which auto hide panel a dock panel hides to?  For example, I have a dock panel that is currently hiding to the bottom auto hide panel, but I would actually like it to hide on the left auto hide panel.
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 06 Jul 2009 Link to this post

    Hello mitch arias,

    Thank you for the question.

    Your scenario is supported in the new version of RadDock, introduced in Q2 2009. In order to set the auto-hide position of a ToolWindow, you should set the AutoHidePosition property of the TabStrip that contains this ToolWindow:
    ((ToolTabStrip)window7.TabStrip).AutoHidePosition = AutoHidePosition.Top; 

    Even if a ToolWindow is suppose to auto-hide to the bottom of RadDock, the above setting will make it auto-hide to the top.

    If you have additional questions, feel free to contact me.

    Kind regards,
    Nikolay
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 06 Jul 2009 Link to this post

    How am I supposed to do that within a Transaction Block, where TabStrip = null after creating the ToolWindow.

    Regards
    Erwin
  5. Georgi
    Admin
    Georgi avatar
    296 posts

    Posted 07 Jul 2009 Link to this post

    Hi Erwin,

    The AutoHide position is dynamically chosen, depending on the position of the ToolTabStrip relatively to the MainDocumentContainer. Please, note that this logic was not present in the beta and the auto-hide position was not very intuitively chosen. By setting the AutoHidePosition property to anything different than Auto, you will lose this automatic behavior.

    There are virtual methods of RadDock which may be overridden to provide completely custom auto-hide behavior. They however are not associated with public events and you will need to derive from RadDock in order to extend them. Since SplitContainers and DockTabStrips are dynamic parts of the docking scene and only the DockWindows are constant, we will consider adding more public events, which will allow easier and more intuitive way for controlling these dynamic parts behavior and appearance.

    All the best,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top