<Window
    CanResize="{CompiledBinding MainWindow.CanResize.Value}"
    Icon="/icon.ico"
    MinHeight="{CompiledBinding MainWindow.WindowMinHeight.Value}"
    MinWidth="{CompiledBinding MainWindow.WindowMinWidth.Value}"
    SizeChanged="Control_OnSizeChanged"
    SizeToContent="{CompiledBinding MainWindow.SizeToContent.Value}"
    Title="{CompiledBinding PicViewer.WindowTitle.Value,
                            Mode=OneWay}"
    TransparencyLevelHint="AcrylicBlur"
    x:Class="PicView.Avalonia.Win32.Views.WinMainWindow"
    x:DataType="viewModels:MainViewModel"
    xmlns="https://github.com/avaloniaui"
    xmlns:main="clr-namespace:PicView.Avalonia.Views.Main;assembly=PicView.Avalonia"
    xmlns:uc="clr-namespace:PicView.Avalonia.Views.UC;assembly=PicView.Avalonia"
    xmlns:viewModels="clr-namespace:PicView.Avalonia.ViewModels;assembly=PicView.Avalonia"
    xmlns:views1="clr-namespace:PicView.Avalonia.Win32.Views"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

	<Window.Styles>
        <Style Selector="Window[WindowState=Maximized]">
            <Setter Property="SystemDecorations" Value="None" />
            <Setter Property="ExtendClientAreaToDecorationsHint" Value="False" />
        </Style>
    </Window.Styles>
    
    <Border BorderBrush="{DynamicResource WindowBorderColor}" BorderThickness="1">
        <DockPanel LastChildFill="True">
            <views1:WinTitleBar DockPanel.Dock="Top" x:Name="Titlebar" />
            <uc:BottomBar DockPanel.Dock="Bottom" x:Name="BottomBar" />
            <main:MainView x:Name="MainView" />
        </DockPanel>
    </Border>
</Window>