mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
fix: IsCloseButtonOnly
is not work on Windows (#431)
This commit is contained in:
parent
e19d025572
commit
e4f95745ce
1 changed files with 4 additions and 3 deletions
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue