sourcegit/src/Views/CaptionButtons.axaml

20 lines
997 B
Text
Raw Normal View History

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="SourceGit.Views.CaptionButtons"
x:Name="ThisControl">
2024-03-25 20:00:15 -07:00
<StackPanel Orientation="Horizontal">
<Button Classes="caption_button" Click="MinimizeWindow" IsVisible="{Binding !#ThisControl.IsCloseButtonOnly}">
2024-03-25 20:00:15 -07:00
<Path Data="{StaticResource Icons.Window.Minimize}"/>
</Button>
<Button Classes="caption_button max_or_restore_btn" Click="MaximizeOrRestoreWindow" IsVisible="{Binding !#ThisControl.IsCloseButtonOnly}">
2024-05-30 00:13:59 -07:00
<Path/>
2024-03-25 20:00:15 -07:00
</Button>
<Button Classes="caption_button" Click="CloseWindow">
2024-09-04 00:54:12 -07:00
<Path Data="{StaticResource Icons.Window.Close}"/>
2024-03-25 20:00:15 -07:00
</Button>
</StackPanel>
</UserControl>