This project has moved. For the latest updates, please go here.

Avalon -LayoutDocumentPane background

Jul 30, 2015 at 4:26 PM
Hello.

Where can i change the background color for layoutdocumentpane ? My dockingmanager will have a fixed documentpane and i want it to have a specific color.
Developer
Jul 30, 2015 at 6:48 PM
Hi,

You can set the property DockingManager.DocumentPaneControlStyle and modify the base style for LayoutDocumentPaneControl :
<Window.Resources>
      <ResourceDictionary>
         <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Xceed.Wpf.AvalonDock;component/Themes/generic.xaml" />
         </ResourceDictionary.MergedDictionaries>

         <Style x:Key="myStyle"
                TargetType="{x:Type xcad:LayoutDocumentPaneControl}"
                BasedOn="{StaticResource DocumentPaneControlStyle}">
            <Setter Property="Background"
                    Value="Green" />
         </Style>
      </ResourceDictionary>
</Window.Resources>

<xcad:DockingManager   DocumentPaneControlStyle="{StaticResource myStyle}">
Marked as answer by pedropdv on 7/30/2015 at 6:24 PM
Jul 31, 2015 at 1:25 AM
Thank you!