<Window
    CanResize="True"
    ExtendClientAreaChromeHints="SystemChrome"
    ExtendClientAreaTitleBarHeightHint="-1"
    MinHeight="200"
    SizeToContent="Width"
    Title="Loading..."
    x:Class="PicView.Avalonia.MacOS.Views.KeybindingsWindow"
    x:DataType="viewModels:MainViewModel"
    xmlns="https://github.com/avaloniaui"
    xmlns:main="clr-namespace:PicView.Avalonia.Views.Main;assembly=PicView.Avalonia"
    xmlns:viewModels="clr-namespace:PicView.Avalonia.ViewModels;assembly=PicView.Avalonia"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Design.DataContext>
        <viewModels:MainViewModel />
    </Design.DataContext>

    <Border
        BorderBrush="{DynamicResource WindowBorderColor}"
        BorderThickness="1"
        CornerRadius="8"
        PointerPressed="MoveWindow">
        <Panel>

            <Panel
                Background="{DynamicResource WindowBackgroundColor}"
                Height="{StaticResource TopBorderHeight}"
                VerticalAlignment="Top"
                x:Name="WindowBorder">

                <TextBlock
                    Classes="txt"
                    Foreground="{DynamicResource MainTextColor}"
                    Text="{CompiledBinding Translation.ApplicationShortcuts.Value,
                                           Mode=OneWay}"
                    TextAlignment="Center" />
            </Panel>

            <Border
                Background="{DynamicResource WindowBackgroundColor}"
                Focusable="True"
                Margin="0,28,0,0">
                <main:KeybindingsView Padding="0,2,0,10" x:Name="XKeybindingsView" />
            </Border>
        </Panel>
    </Border>
</Window>