Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: How to change the border brush for LayoutAnchorable?

$
0
0
Hi,

You will find the Outer Border in the LayoutAnchorablePaneControl. You can modify it in a style for LayoutAnchorablePaneControl, based on the default one from generic.xaml and set this new style to DockingManager.AnchorablePaneControlStyle property :
<Window.Resources>
      <ResourceDictionary>
         <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Xceed.Wpf.AvalonDock;component/Themes/generic.xaml" />
         </ResourceDictionary.MergedDictionaries>

         <!-- Inner Border -->
         <Style TargetType="{x:Type xcad:LayoutAnchorableControl}">
            <Setter Property="BorderBrush"
                    Value="Green" />
            <Setter Property="BorderThickness"
                    Value="3" />
         </Style>

         <!-- Outer Border -->
         <Style x:Key="MyAnchorablePaneControlStyle"
                TargetType="{x:Type xcad:LayoutAnchorablePaneControl}"
                BasedOn="{StaticResource AnchorablePaneControlStyle}">
            <Setter Property="BorderBrush"
                    Value="Blue" />
            <Setter Property="BorderThickness"
                    Value="3" />
         </Style>

         <Style TargetType="{x:Type xcad:DockingManager}">
            <Setter Property="AnchorablePaneControlStyle"
                    Value="{StaticResource MyAnchorablePaneControlStyle}" />
         </Style>
      </ResourceDictionary>      
   </Window.Resources>

Viewing all articles
Browse latest Browse all 2157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>