<Window x:Class="LogoForceTestApp.Views.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:core="clr-namespace:LogoForceTestApp.Core;assembly=LogoForceTestApp.Core"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:hc="https://handyorg.github.io/handycontrol"
        xmlns:icon="http://metro.mahapps.com/winfx/xaml/iconpacks"
        xmlns:local="clr-namespace:LogoForceTestApp"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:prism="http://prismlibrary.com/"
        xmlns:viewmodels="clr-namespace:LogoForceTestApp.ViewModels"
        Title="{Binding Title}"
        Width="1440"
        Height="800"
        d:DataContext="{d:DesignInstance Type=viewmodels:MainWindowViewModel}"
        prism:ViewModelLocator.AutoWireViewModel="True"
        WindowStartupLocation="CenterScreen"
        WindowState="Maximized"
        mc:Ignorable="d">
    <Window.Resources>
        <ResourceDictionary>
            <local:JugetoBrushConvert x:Key="JugetoBrushConvet" />
            <local:JugetoStringConvet x:Key="JugetoStringConvet" />
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="100" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid>
            <Grid.Resources>
                <Style TargetType="Button">
                    <Setter Property="BorderThickness"
                            Value="0" />
                    <Setter Property="Width"
                            Value="90" />
                    <Setter Property="Height"
                            Value="90" />
                    <Setter Property="Background"
                            Value="{DynamicResource LightPrimaryBrush}" />
                </Style>
            </Grid.Resources>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="350" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <StackPanel Orientation="Horizontal">
                <Button Command="{Binding GoMainPageCommand}">
                    <icon:FontAwesome Width="80"
                                      Height="80"
                                      Kind="HomeSolid" />
                </Button>
                <Button Command="{Binding DataCommand}">
                    <icon:PackIconForkAwesome Width="80"
                                              Height="80"
                                              Kind="AreaChart" />
                </Button>
                <Button Command="{Binding StatementPageCommand}">
                    <icon:PackIconEvaIcons Width="80"
                                           Height="80"
                                           Kind="Eye" />
                </Button>
                <Button Command="{Binding LogCommand}">
                    <icon:PackIconMaterial Width="80"
                                           Height="80"
                                           Kind="GestureTap" />
                </Button>
                <!--<Button Command="{Binding SettingCommand}">
                    <icon:PackIconMaterial
                        Width="80"
                        Height="80"
                        Kind="Tools" />
                </Button>-->
                <Button Command="{Binding Tracing}">
                    <icon:PackIconMaterial Width="80"
                                           Height="80"
                                           Kind="ClipboardTextSearchOutline" />
                </Button>
                <!--<Button Command="{Binding SopCommand}">
                    <icon:PackIconBoxIcons Width="80"
                                           Height="80"
                                           Kind="SolidCalendarMinus" />
                </Button>-->
                <!--<Button Command="{Binding AccountCommand}">
                    <icon:PackIconMaterial Width="80"
                                           Height="80"
                                           Kind="AccountCog" />
                </Button>-->
            </StackPanel>

            <TextBlock Grid.Column="1"
                       HorizontalAlignment="Center"
                       VerticalAlignment="Center"
                       FontSize="36"
                       Foreground="Black">
                智能门锁装配生产线
            </TextBlock>

            <StackPanel Grid.Column="2"
                        Margin="10,0"
                        HorizontalAlignment="Right"
                        Orientation="Horizontal">
                <TextBlock VerticalAlignment="Center"
                           FontSize="25"
                           Foreground="Blue"
                           Margin="20,0"
                           Text="主屏" />
                <TextBlock VerticalAlignment="Center"
                           FontSize="20"
                           FontWeight="Bold"
                           Text="当前用户:" />
                <TextBlock Margin="10,0"
                           VerticalAlignment="Center"
                           FontSize="18"
                           Foreground="{Binding LoinBrush}"
                           Text="{Binding LoginMessage}" />
                <!--<Button>
                    <icon:FontAwesome
                        Width="80"
                        Height="80"
                        Kind="PlaySolid" />
                </Button>
                <Button>
                    <icon:FontAwesome
                        Width="80"
                        Height="80"
                        Kind="StopSolid" />
                </Button>
                <Button>
                    <icon:FontAwesome
                        Width="80"
                        Height="80"
                        Kind="PauseSolid" />
                </Button>-->
                <Button Command="{Binding LoginCommand}">
                    <icon:FontAwesome Width="80"
                                      Height="80"
                                      Kind="UserAltSolid" />
                </Button>
                <!--<Label
                    Width="100"
                    Height="100"
                    Background="{Binding Jugement, Converter={StaticResource JugetoBrushConvet}}"
                    Content="{Binding Jugement, Converter={StaticResource JugetoStringConvet}}"
                    FontSize="20" />-->
            </StackPanel>
        </Grid>
        <hc:SimplePanel Grid.Row="1">
            <ContentControl prism:RegionManager.RegionName="{x:Static core:RegionNames.ContentRegion}" />
            <hc:ScrollViewer HorizontalAlignment="Right"
                             IsInertiaEnabled="True"
                             IsPenetrating="True"
                             VerticalScrollBarVisibility="Hidden">
                <StackPanel Margin="0,10,10,10"
                            VerticalAlignment="Bottom"
                            hc:Growl.GrowlParent="True" />
            </hc:ScrollViewer>
        </hc:SimplePanel>
    </Grid>
</Window>