<My:MWindow  xmlns:My="clr-namespace:MyWPFControl.Controls;assembly=MyWPFControl"
             x:Class="B20UVLog.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:B20UVLog"
             xmlns:viewmodels="clr-namespace:B20UVLog.ViewModels" 
             xmlns:pages="clr-namespace:B20UVLog.Pages"
             mc:Ignorable="d"
             Title="UV Log" Height="960" Width="1800"
             WindowState="Maximized"
             Loaded="MWindow_Loaded">
    <Window.DataContext>
        <viewmodels:MainWindowViewModel/>
    </Window.DataContext>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <Menu Grid.Row="0">
            <MenuItem Header="基础配置">
                <MenuItem.Icon>
                    <My:MIcon Kind="CogOutline"/>
                </MenuItem.Icon>
                <MenuItem Header="数据库配置" Command="{Binding MenuItemClickCommand}" CommandParameter="db"/>
                <MenuItem Header="PLC配置" Command="{Binding MenuItemClickCommand}" CommandParameter="plc"/>
                <MenuItem Header="字典配置" Command="{Binding MenuItemClickCommand}" CommandParameter="dict"/>
            </MenuItem>
            <MenuItem Header="关于">
                <MenuItem.Icon>
                    <My:MIcon Kind="HelpCircleOutline"/>
                </MenuItem.Icon>
            </MenuItem>
        </Menu>
        <My:MTabControl Grid.Row="1" TabStripPlacement="Left">
            <My:MTabItem Header="Axis Data">
                <pages:AxisData/>
            </My:MTabItem>
            <My:MTabItem Header="Servo Axis Status">
                <pages:ServoAxisStatus/>
            </My:MTabItem>
            <My:MTabItem Header="Glass Information">
                <pages:GlassInformation/>
            </My:MTabItem>
            <My:MTabItem Header="Lamp Use Time">
                <pages:LampUseTime/>
            </My:MTabItem>
            <My:MTabItem Header="Recipe Body">
                <pages:RecipeBody/>
            </My:MTabItem>
            <My:MTabItem Header="SYS Para">
                <pages:SYSPara/>
            </My:MTabItem>
            <My:MTabItem Header="Robot In">
                <pages:RobotInterfaceIn/>
            </My:MTabItem>
            <My:MTabItem Header="Robot Out">
                <pages:RobotInterfaceOut/>
            </My:MTabItem>
            <My:MTabItem Header="Y Measure Data">
                <pages:YMeasureData/>
            </My:MTabItem>
            <My:MTabItem Header="EQP Status">
                <pages:EQPStatus/>
            </My:MTabItem>
            <My:MTabItem Header="Recipe Count">
                <pages:RecipeCount/>
            </My:MTabItem>
            <My:MTabItem Header="ANALog Data">
                <pages:ANALogData/>
            </My:MTabItem>
            <My:MTabItem Header="Alarn &amp; Warn">
                <pages:Alarm/>
            </My:MTabItem>
            <My:MTabItem Header="IO">
                <pages:IO/>
            </My:MTabItem>
        </My:MTabControl>
        <StackPanel Grid.Row="2" Orientation="Horizontal" IsHitTestVisible="False">
            <!--<My:MCheckBox IsChecked="{Binding PLCStatus}">PLC连接状态</My:MCheckBox>
            <My:MCheckBox IsChecked="{Binding DBStatus}">数据库连接状态</My:MCheckBox>-->
        </StackPanel>
    </Grid>
</My:MWindow>
