xceedsoftware/wpftoolkit

How to style DocumentCloseButton

ucyildirim opened this issue · 1 comments

Hi

How can i change DocumentCloseButton's style?
Is there any template/style binding that i can do from DockingManager?

<Button x:Name="DocumentCloseButton"
Style="{DynamicResource {x:Static ToolBar.ButtonStyleKey}}"
Grid.Column="2"
Visibility="Hidden"
Command="{Binding Path=LayoutItem.CloseCommand, RelativeSource={RelativeSource TemplatedParent}}"
ToolTip="{x:Static avalonDockProperties:Resources.Document_Close}">
<Image Source="{xctk:ImageUri AssemblyName=Xceed.Wpf.AvalonDock, Path=Themes/Generic/Images/PinClose.png}">
</Image>
</Button>

Best regards.

Hi,

Currently, you can't change the DocumentCloseButton's style unless you redefine the main template of LayoutDocumentTabItem.
What are your needs exactly ? Modify the content(image) or the button properties ? Because the Visibility is managed through Triggers in the template.
Thank you.