2

I am using AvalonDock control to accomplish bindable and dockable panes.

enter image description here

I found great sample which alowed me do that. A few things are required to do that: I usedDock manager:

<xcad:DockingManager Name="DockingManager"  AnchorablesSource="{Binding FooterTools}" DocumentsSource="{Binding MainWindowTools}">
  1. Prepare PanesTemplateSelectors, PanesStyleSelectors

Everything looks great and enables me to prepare that solution using MVVM pattern.

I would like to know how to extend that solution to accomplish following draft:

enter image description here

I have two sources which I can use as a bindable sources:

AnchorablesSource="{Binding FooterTools}" DocumentsSource="{Binding MainWindowTools}"

I would be glad if someone point me direction or give a clue how to make one bindable pane in a footer and another in a right side.

Is it possible using AvalonDock

komizo
  • 1,052
  • 14
  • 21
  • 1
    As I depicted I want to have 3 groups (tabbed main, tabbed footer pane, right pane), but I only have AnchorablesSource and DocumentsSource therefore I do not know how to extract third one. Is it possible to do that by StyleSelector? – komizo Sep 25 '14 at 08:24
  • I assmue that following code will suffice: AVBehav:AvalonDockLayoutSerializer.LoadLayoutCommand="{Binding ADLayout.LoadLayoutCommand}" I investigate it and I assume it is a solution AVBehav:AvalonDockLayoutSerializer.SaveLayoutCommand="{Binding ADLayout.SaveLayoutCommand}"> – komizo Sep 25 '14 at 08:52
  • Solution was found on https://edi.codeplex.com/ – komizo Sep 25 '14 at 09:19

1 Answers1

6

This is not too difficult to accomplish.

  1. Execute the application attached to this article: http://www.codeproject.com/Articles/719143/AvalonDock-Tutorial-Part-Load-Save-Layout

  2. Drag tool windows and documents such that they are as your layout depicts.

  3. Exit the application and review the saved Layout.config file

  4. You should then be able to make the Layout.config file a resource of your application and load the layout when you see fit. See my editor for a real life demo of this principle: https://github.com/Dirkster99/Edi Sorry, I don't have enough points so I can't attach an image to show what I mean :-(

user8276908
  • 1,051
  • 8
  • 20
user3313608
  • 241
  • 3
  • 4