Skip to content

Commit

Permalink
Fixed Close Button Position in Generic Theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirkster99 committed Dec 12, 2017
1 parent 1c2163e commit fa81b3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Components/Xceed.Wpf.AvalonDock/Themes/generic.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,8 @@
<ContentPresenter Content="{Binding Model, RelativeSource={RelativeSource TemplatedParent}}"
ContentTemplate="{Binding DocumentHeaderTemplate, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type avalonDock:DockingManager}, Mode=FindAncestor}}"
ContentTemplateSelector="{Binding DocumentHeaderTemplateSelector, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type avalonDock:DockingManager}, Mode=FindAncestor}}" />
<!-- Close button should be moved out to the container style -->
<Button x:Name="DocumentCloseButton" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Grid.Column="1" Margin="5,0,0,0" Visibility="Hidden"
<!-- Close button should be moved out to the container style --><!-- https://github.com/xceedsoftware/wpftoolkit/pull/1184/files -->
<Button x:Name="DocumentCloseButton" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Grid.Column="1" Margin="1,-5,-3,-6" Visibility="Hidden"
Command="{Binding Path=LayoutItem.CloseCommand, RelativeSource={RelativeSource TemplatedParent}}"
ToolTip="{x:Static avalonDockProperties:Resources.Document_Close}">
<Image Source="/Xceed.Wpf.AvalonDock;component/Themes/Generic/Images/PinClose.png"/>
Expand Down

0 comments on commit fa81b3f

Please sign in to comment.