Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to style DocumentCloseButton #420

Closed
ucyildirim opened this issue Jan 23, 2023 · 1 comment
Closed

How to style DocumentCloseButton #420

ucyildirim opened this issue Jan 23, 2023 · 1 comment

Comments

@ucyildirim
Copy link

Hi

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

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

Best regards

@Dirkster99
Copy link
Owner

I am afraid there is no central style for this button. You will have to change the ControlTemplate of the element that contains the button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants