Starting DockableContent with auto-hide

Feb 9, 2009 at 12:46 PM
Hi,

I'm looking to start the application with a dockablecontent window initialy in auto-hide mode.
Can somebody please point me to the correct way of doing this?

Thanks.
Feb 19, 2009 at 9:14 AM
Hi,

I'm trying to do the same thing.
I managed to hide my DockablePane at startup by calling the "dockingManager.ToggleAutoHide(myPane)" method when my window is created.
The problem is that the "button" that shows my DockablePane on mouse over is displayed on the left side of my window whereas I would like it to be on the bottom of my window.

Does anyone know how I can achieve this ?

Thanks a lot.
Feb 19, 2009 at 9:39 AM
I also wanted to know if there is a way to open a DocumentPane with its DocumentContents automatically displayed side by side ?

Thanks.
Feb 23, 2009 at 8:50 AM
I used the Show() method in the dock manager.

Here's my code

ShellWindow.dockManager.Show(dc, DockableContentState.AutoHide, AnchorStyle.Right);

However, I'm still having a problem using this. Whenever i tried to click the buttons(autohide, close) in the dockable content, all of a sudden, the whole application will just close.
Feb 26, 2009 at 4:31 PM
Hi, I don't know if you have solve this problem anyway I can suggest that the preferred way to startup AvalonDock with a initial layout is to use the RestoreLayout().

Thanks
Ado
Mar 3, 2009 at 8:35 AM
Hi,

Haven't solved it yet. I'll have a look at the restorelayout() funtionality.

Thanks,
   Rudi.
Mar 5, 2009 at 10:37 AM

Hi Ado,

Using SaveLayout() and RestoreLayout() I could accomplish what I wanted.

Thanks.