<Window x:Class="SlnMesnac.WPF.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:local="clr-namespace:SlnMesnac.WPF"
        mc:Ignorable="d"
        Title="MainWindow" Height="1080" Width="1920"
        WindowState="Maximized"  Topmost="False" Background="#ECF5F8">
        <!--WindowStyle="None" ResizeMode="NoResize"-->
    <Border Margin="5" Background="Transparent" CornerRadius="10">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="12*"/>
            </Grid.RowDefinitions>
            <Border Grid.Row="0" Background="#194B9F">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="2*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="6*"/>
                    </Grid.ColumnDefinitions>
                    <Border Grid.Column="0" Background="#1352B2">
                        <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
                            <TextBlock Text="MESNAC" FontSize="24" Foreground="White" FontFamily="四圆黑" FontWeight="Bold"/>
                            <TextBlock Text="   软控" FontSize="24" Foreground="White" FontFamily="四圆黑" FontWeight="Bold"/>
                        </StackPanel>
                    </Border>
                    <Border Grid.Column="1" Background="Transparent">
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
                            <TextBlock Text="工业高频RFID（测试展示）" FontSize="24" Foreground="White" FontFamily="四圆黑" FontWeight="Bold" Margin="20,0,0,0"/>
                        </StackPanel>
                    </Border>
                    <Border Grid.Column="2" Background="#0A56C7">
                        <Button HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="60" Background="Transparent" BorderBrush="Transparent"
                                x:Name="Index"  Command="{Binding ControlOnClickCommand}" CommandParameter="{Binding Name,ElementName=Index}">
                            <Button.Content>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontFamily="/Templates/fonts/font_5w2octy6l1q/#iconfont" Text="&#xe669;" FontSize="22" Foreground="White" FontWeight="Bold"/>
                                    <TextBlock Text="首页" FontSize="22" Foreground="White" FontFamily="四圆黑" FontWeight="Bold" Margin="5,0"/>
                                </StackPanel>
                            </Button.Content>
                        </Button>
                    </Border>
                    <Border Grid.Column="3" Background="Transparent">
                        <Button HorizontalAlignment="Right" VerticalAlignment="Stretch" Height="60" Background="Transparent" BorderBrush="Transparent"
                                x:Name="Set"  Command="{Binding ControlOnClickCommand}" CommandParameter="{Binding Name,ElementName=Set}">
                            <Button.Content>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock FontFamily="/Templates/fonts/font_5w2octy6l1q/#iconfont" Text="&#xf018f;" FontSize="26" Foreground="White" FontWeight="Bold" Margin="0,1,0,0"/>
                                    <TextBlock Text="设置" FontSize="22" Foreground="White" FontWeight="Bold" Margin="5,0,20,0"/>
                                </StackPanel>
                            </Button.Content>
                        </Button>
                    </Border>
                </Grid>
            </Border>
            <Border Grid.Row="1" Background="Transparent">
                <ContentControl Content="{Binding UserContent}"/>
            </Border>
        </Grid>
        
    </Border>

</Window>
