<Window x:Class="StartServerWPF.Views.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:prism="http://prismlibrary.com/" WindowState="Maximized"
          WindowStartupLocation="CenterScreen" MouseDown="Window_MouseDown"
        prism:ViewModelLocator.AutoWireViewModel="True" Closing="Window_Closing"
        Title="{Binding Title}" Height="900" Width="1700" >
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/StartServerWPF.Assets;component/Styles/BaseResources.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="60"/>
            <RowDefinition Height="100*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150"/>
            <ColumnDefinition Width="100*"/>
        </Grid.ColumnDefinitions>
        <DockPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Background="#FF5E83FF">
            <Image  Source="pack://application:,,,/StartServerWPF.Assets;component/Images/Union.png" Height="32" Stretch="Uniform" Margin="20,0,30,0"/>
            <TextBlock Text="微地震预警系统管理后台" FontSize="30px" Foreground="White"  VerticalAlignment="Center"/>
            <Button  Content="&#xe603;" FontFamily="{StaticResource Iconfont}" FontSize="20" BorderBrush="Transparent" Command="{Binding ExitCommand}" HorizontalAlignment="Right" Width="58" Height="58" Foreground="White"  Background="Black"/>
        </DockPanel>
        <ContentControl  prism:RegionManager.RegionName="LeftMenuTreeRegion" Grid.Column="0" Grid.Row="1"/>
        <ContentControl prism:RegionManager.RegionName="MainContentRegion" Grid.Column="1" Grid.Row="1" />
    </Grid>
</Window>
