Skip to content

Commit e4f9574

Browse files
committed
fix: IsCloseButtonOnly is not work on Windows (#431)
1 parent e19d025 commit e4f9574

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Views/CaptionButtons.axaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
44
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
55
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
6-
x:Class="SourceGit.Views.CaptionButtons">
6+
x:Class="SourceGit.Views.CaptionButtons"
7+
x:Name="ThisControl">
78
<StackPanel Orientation="Horizontal">
8-
<Button Classes="caption_button" Click="MinimizeWindow">
9+
<Button Classes="caption_button" Click="MinimizeWindow" IsVisible="{Binding !#ThisControl.IsCloseButtonOnly}">
910
<Path Data="{StaticResource Icons.Window.Minimize}"/>
1011
</Button>
11-
<Button Classes="caption_button max_or_restore_btn" Click="MaximizeOrRestoreWindow">
12+
<Button Classes="caption_button max_or_restore_btn" Click="MaximizeOrRestoreWindow" IsVisible="{Binding !#ThisControl.IsCloseButtonOnly}">
1213
<Path/>
1314
</Button>
1415
<Button Classes="caption_button" Click="CloseWindow">

0 commit comments

Comments
 (0)