I want to change the color of the Metro AvalonDock theme. I also asked a related question with Codeplex , but so far I have not had an answer.
I have identified the following XAML ( source file ) as the part that I think is responsible for the color I want to change:
<Style TargetType="avalonDockControls:AnchorablePaneTitle"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> ... <ControlTemplate.Triggers> ... <DataTrigger Binding="{Binding Model.IsActive, RelativeSource={RelativeSource Mode=Self}}" Value="True"> <Setter Property="BorderBrush" Value="{DynamicResource AvalonDock_ThemeMetro_BaseColor3}" /> <Setter Property="BorderThickness" Value="0,3,0,0"/> </DataTrigger> ... </ControlTemplate.Triggers> ...
You can see: the brush gets BaseColor3 (blue by default).
Now I have changed the color in my XAML:
<Window.Resources> ... <SolidColorBrush x:Key="AvalonDock_ThemeMetroBaseColor3" Color="Red" /> </Window.Resources>
Nothing changes. The color remains bluish. Now I am confused. Thus, it must be the wrong property to change, or something to prevent color change and / or internal, it uses the old value or something like that.
Why doesn't it work? How can I detect such problems and fix this?
fedab source share