Are there any blogs or articles about using AvalonDock with Caliburn Micro MVVM? Didn't find much when googling
http://avalondock.codeplex.com/
edit: got a vote, so why not update the final decision. Full code can be found here.
https://github.com/AndersMalmgren/FreePIE
Most of the avalon code is here
https://github.com/AndersMalmgren/FreePIE/blob/master/FreePIE.GUI/Shells/MainShellView.xaml
Update after Sam's answer
Its very, very little that needs to be done to turn on Caliburn. First run LayoutItemTemplateSelector
public class AutobinderTemplateSelector : DataTemplateSelector
{
public DataTemplate Template { get; set; }
public override DataTemplate SelectTemplate(object item, DependencyObject container)
{
return Template;
}
}
And use it along with the content control and Caliburns View.Model mechanism, for example
<xcad:DockingManager.LayoutItemTemplateSelector>
<avalonDock1:AutobinderTemplateSelector>
<avalonDock1:AutobinderTemplateSelector.Template>
<DataTemplate>
<ContentControl cal:View.Model="{Binding . }" IsTabStop="False" />
</DataTemplate>
</avalonDock1:AutobinderTemplateSelector.Template>
</avalonDock1:AutobinderTemplateSelector>
</xcad:DockingManager.LayoutItemTemplateSelector>
source
share