<UserControl
    Background="Transparent"
    d:DesignHeight="450"
    d:DesignWidth="800"
    mc:Ignorable="d"
    x:Class="PicView.Avalonia.Views.UC.Buttons.AltMinimize"
    x:DataType="viewModels:MainViewModel"
    xmlns="https://github.com/avaloniaui"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:viewModels="clr-namespace:PicView.Avalonia.ViewModels"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Button
        Background="{DynamicResource AltBackgroundColor}"
        BorderBrush="{DynamicResource MainBorderColor}"
        BorderThickness="1,0,0,0"
        Classes="ButtonBorder hover"
        ClickMode="Release"
        Command="{CompiledBinding MainWindow.MinimizeCommand}"
        CornerRadius="0,0,0,10"
        DockPanel.Dock="Right"
        Height="30"
        HorizontalAlignment="Right"
        IsVisible="{CompiledBinding !MainWindow.IsUIShown.Value}"
        VerticalAlignment="Top"
        Width="35"
        ZIndex="99"
        x:Name="XButton">
        <Viewbox Height="15" Width="15">
            <Path
                Data="{StaticResource MinimizeGeometry}"
                Fill="{DynamicResource MainTextColor}"
                Margin="7.5,0,0,7"
                Stretch="Fill" />
        </Viewbox>
    </Button>
</UserControl>
