I have implemented the solution given in AvalonDock2 : LayoutItemTemplate only for documents. However I have a problem with setting the title on my Documents. I have inserted a DocumentHeaderTemplate
<xcad:DockingManager.DocumentHeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding Content.Name}" />
</DataTemplate>
</xcad:DockingManager.DocumentHeaderTemplate>
This works for my bounded documents, but overrides my Title set on my LayoutAnchorable and gives an empty title when I set this. If I remove the DocumentHeaderTemplate I get my desired title on the anchorables, but not on my documents. My LayoutAnchorable follows:
<xcad:LayoutAnchorable ContentId="Log" Title="Log" CanClose="False">