<hc:Window x:Class="SparkClient.MainWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           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"
           xmlns:hc="https://handyorg.github.io/handycontrol"
           xmlns:baseWindow="clr-namespace:SparkClient.ViewModel.BaseWindow"
           mc:Ignorable="d"
           Title="{DynamicResource ProcName}"
           ShowTitle="False"
           WindowStyle="None"
           ResizeMode="CanResizeWithGrip"
           WindowStartupLocation="CenterScreen"
            
           MinHeight="400"
           MinWidth="800"
           StateChanged="MainWindow_OnStateChanged"
           Loaded="MainWindow_OnLoaded"
           WindowState="Maximized"
           Closing="MainWindow_OnClosing"
           Background="{DynamicResource SecondaryRegionBrush}">

    <!-- 内容区域 -->
    <Grid>
        <Grid.RowDefinitions>
            
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions> 
        <!-- 窗口主体内容 -->
        <!-- Background="#657aa9" -->
        <Border Grid.Row="0">
            <Border.Background>
                <ImageBrush ImageSource="../Resource/Images/UIResource/01-bg.jpg"></ImageBrush>
            </Border.Background>
            <ContentControl DataContextChanged="FrameworkElement_OnDataContextChanged" ClipToBounds="True" Content="{Binding Content}"
                            Loaded="FrameworkElement_OnLoaded"/>
        </Border>
        
    </Grid>
    
</hc:Window>