Is it possible to prepare bindable MVVM anchorable panes both in main, footer and ride side window using Xceed AvalonDock

余生长醉 提交于 2019-12-08 05:36:14

问题


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

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:

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


回答1:


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 :-(



来源:https://stackoverflow.com/questions/26033769/is-it-possible-to-prepare-bindable-mvvm-anchorable-panes-both-in-main-footer-an

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!