This project is read-only.

Disallow floating of a DockableContent

Jan 14, 2010 at 9:51 PM

Is there a way to allow only auto-hide of a DockableContent?

I've tried setting DockableStyle="AutoHide" but it's still possible to float a panel.

<ad:DockingManager>
        <ad:ResizingPanel Orientation="Horizontal">
            <ad:DockablePane>
                <ad:DockableContent Title="Presets" IsCloseable="False" DockableStyle="AutoHide">
                    <TreeView>
                        <TreeViewItem Header="All Presets" IsExpanded="True">
                            <TreeViewItem Header="Abc"></TreeViewItem>
                            <TreeViewItem Header="Def"></TreeViewItem>
                            <TreeViewItem Header="Ghi"></TreeViewItem>
                        </TreeViewItem>
                    </TreeView>
                </ad:DockableContent>
            </ad:DockablePane>
            <ad:DocumentPane>
                .....
            </ad:DocumentPane>
        </ad:ResizingPanel>
    </ad:DockingManager>

Jan 21, 2010 at 6:47 AM

I would like to second this request... I have also been looking for a way to prevent dockable content from floating.

Jan 28, 2010 at 7:00 AM

me too

Feb 9, 2010 at 4:24 PM

sorry at moment is not possible, I'm going to fix the problem in next build.

Ado

Feb 19, 2010 at 10:35 PM

ADOSPACE - When is the next build expected? I am constructing a prototype for my company and AvalonDock might form an integral part of the prototype. I need both IsCloseable="False" & DockableStyle="AutoHide" to work. Are you in a position to share the code, if you cannot do it within the next few days? I would be perfectly willing to make the changes to AvalonDock for as per my requirement. You can review the changes and add them back to the product.

Mar 22, 2010 at 4:04 AM

 I had the same requirement.  I  just created a template for the DockablePane and set IsHitTestVisible=False on the Grid that contains the header.  You'll have to move the Pin button so that that you can still AutoHide. 

-LT