This project is read-only.

How to load a WPF Window as a DockingTab / LayoutAnchorable.

Jul 1, 2012 at 5:55 AM


I want to load a existing WPF Window on to the <avalonDock:DockingManager>.

Thanks for any help.

Jul 3, 2012 at 8:18 PM

You can't, you must set the content of the window inside a LayoutAnchorable.

Jul 5, 2012 at 7:00 AM

But how? please give me an sample code.


Jul 5, 2012 at 11:29 PM

I don't have understood what you exactly mean, could you post your sample code?

Jul 6, 2012 at 7:43 AM

I used this to design WPF windows as DockableContents with the Version 1.3.

<ad: DockableContent>

But after upgrading to Version 2 I tried this ->



After changing that I got these errors.

Inline image 1

And after correcting those errors, I got this

Inline image 2
Now what is your solution?

Jul 6, 2012 at 8:27 AM

Please follow the sample projects attached to download solution. In general you can replace the DockableContents with LayoutAnchorables but it's not just the same thing. The DockableContent was essentially a UserControl (so a FrameworkElement), instead the LayoutAnchorable is a simple class that is part of the layout.

Without a more precise question is impossible to address your issue, thx

Jul 9, 2012 at 5:46 AM

Hi ado,


In your sample, all tabs (same to my windows) are designed in the same window. But I have more than 20 windows in my project.

Is it possible to design all of those windows inside one window?

I want to develop/design these windows separately and then dock in to the main windows' DockingManager.


Now I hope you got my problem as it is. And what is the solution? If I downgraded to Version 1.3, I can't see anything in the designer except follow.