fix: IsCloseButtonOnly is not work on Windows (#431)

This commit is contained in:
leo 2024-09-01 17:01:24 +08:00
parent e19d025572
commit e4f95745ce
No known key found for this signature in database

View file

@ -3,12 +3,13 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="SourceGit.Views.CaptionButtons"> x:Class="SourceGit.Views.CaptionButtons"
x:Name="ThisControl">
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<Button Classes="caption_button" Click="MinimizeWindow"> <Button Classes="caption_button" Click="MinimizeWindow" IsVisible="{Binding !#ThisControl.IsCloseButtonOnly}">
<Path Data="{StaticResource Icons.Window.Minimize}"/> <Path Data="{StaticResource Icons.Window.Minimize}"/>
</Button> </Button>
<Button Classes="caption_button max_or_restore_btn" Click="MaximizeOrRestoreWindow"> <Button Classes="caption_button max_or_restore_btn" Click="MaximizeOrRestoreWindow" IsVisible="{Binding !#ThisControl.IsCloseButtonOnly}">
<Path/> <Path/>
</Button> </Button>
<Button Classes="caption_button" Click="CloseWindow"> <Button Classes="caption_button" Click="CloseWindow">