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

Auto Hide

3 Answers 189 Views
Dock
This is a migrated thread and some comments may be shown as answers.
mitch arias
Top achievements
Rank 1
mitch arias asked on 01 Jul 2009, 02:48 PM
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.

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 06 Jul 2009, 01:04 PM
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.
0
erwin
Top achievements
Rank 1
Veteran
Iron
answered on 06 Jul 2009, 08:34 PM
How am I supposed to do that within a Transaction Block, where TabStrip = null after creating the ToolWindow.

Regards
Erwin
0
Georgi
Telerik team
answered on 07 Jul 2009, 08:30 AM
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.
Tags
Dock
Asked by
mitch arias
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
erwin
Top achievements
Rank 1
Veteran
Iron
Georgi
Telerik team
Share this question
or