<UserControl
    Background="Transparent"
    d:DesignHeight="450"
    d:DesignWidth="800"
    mc:Ignorable="d"
    x:Class="PicView.Avalonia.Views.UC.Buttons.AltClose"
    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}"
        BorderThickness="1,0,0,1"
        Classes="ButtonBorder hover"
        ClickMode="Release"
        Command="{CompiledBinding MainWindow.ExitCommand}"
        CornerRadius="0,0,0,0"
        DockPanel.Dock="Right"
        Height="30"
        HorizontalAlignment="Right"
        IsVisible="{CompiledBinding !MainWindow.IsUIShown.Value}"
        ToolTip.Tip="{CompiledBinding Translation.Close.Value,
                                      Mode=OneWay}"
        VerticalAlignment="Top"
        Width="35"
        ZIndex="99"
        x:Name="XButton">
        <Path
            Data="{StaticResource CloseGeometry}"
            Fill="{DynamicResource MainTextColor}"
            Height="12"
            Margin="0,0,0,3"
            Stretch="Fill"
            Width="12" />
    </Button>
</UserControl>
