Skip to content

Commit

Permalink
Adding a key for AnchorablePaneTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
zcanann committed Apr 21, 2021
1 parent ffe5d73 commit c15f83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Components/AvalonDock/Themes/generic.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
</Setter>
</Style>

<Style TargetType="avalonDockControls:AnchorablePaneTitle">
<Style x:Key="AnchorablePaneTitleStyle" TargetType="{x:Type avalonDockControls:AnchorablePaneTitle}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
Expand Down

1 comment on commit c15f83c

@romen-h
Copy link

@romen-h romen-h commented on c15f83c Dec 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding the key here has broken the generic theme such that the anchorable title control is collapsed/missing.
I think there is supposed to be a corresponding setter in the style for DockingManager that applies this style to the AnchorablePaneTitle using its key.
If you revert this change the lack of a key allows the style to be automatically applied to all instances of AnchorablePaneTitle.

Please sign in to comment.