[Version 1.3] How do I dock a DockableContent in default predefined position?

May 30, 2012 at 5:31 AM

Hi, all,

Suppose I have my View which consist of DockManager, which in turn, has one ResizingPanel and a DocumentPane, like this:

                <ad:DockingManager Name="dockManager">

            <ad:ResizingPanel x:Name="myResizingPanel">
                <ad:DocumentPane Name="tabsHost" />
            </ad:ResizingPanel>
        </ad:DockingManager>

Now I want to add (programmatically) a new DockableContent, and I want it to dock to some default side, which I specify. I did the following:

DockablePane dp = new DockablePane();
DockableContent content = new DockableContent();
dp.Items.Add(content);
myResizingPanel.Children.Add(dp);

content.Show( dockManager, GetSomeDefaultAnchorStyle() );

But, alas! Since the myResizngPanel has Vertival orientation by default, my content is always docked to the right side.

How do I construct my layout to allow panes to be docked at the side I wish?

May 30, 2012 at 8:09 AM

Sorry for inconvience, the problem has been solved.

I should have looked to AvalonDock samples, not the unknown sample from Internet.