<UserControl x:Class="NEIntelligentControl2.Views.MainWindow.MainWindowMenu"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:NEIntelligentControl2.Views.MainWindow"
             mc:Ignorable="d" 
             d:DesignHeight="290" d:DesignWidth="212" MinWidth="212">
    <UserControl.Resources>
        <ResourceDictionary>
            <Style x:Key="ItemGrid" TargetType="Grid">
                <Setter Property="Height" Value="44"/>
                <Style.Triggers>
                    <Trigger Property="IsMouseOver" Value="True">
                        <Setter Property="Background" Value="#FF646464"/>
                    </Trigger>
                </Style.Triggers>
            </Style>
            <Style x:Key="ItemImage" TargetType="Image">
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Width" Value="31"/>
                <Setter Property="Height" Value="31"/>
            </Style>
            <Style x:Key="ItemTextBlock" TargetType="TextBlock">
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="FontSize" Value="15"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="FontFamily" Value="Microsoft YaHei"/>
            </Style>
        </ResourceDictionary>
    </UserControl.Resources>

    <StackPanel Background="#FF454545">

        <Grid Style="{StaticResource ItemGrid}" MouseUp="Grid_MouseUp" Tag="Home.HomePage" Visibility="Collapsed">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="3*"/>
                <ColumnDefinition Width="7*"/>
            </Grid.ColumnDefinitions>
            <Viewbox Width="31" Height="31">
                <Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="yuan__1_" Width="1092" Height="1092" Clip="F1 M 0,0L 1092,0L 1092,1092L 0,1092L 0,0">
                    <Canvas x:Name="yuan__1__0" Width="1092" Height="1092" Canvas.Left="0" Canvas.Top="0">
                        <Path x:Name="Path" Width="1092.27" Height="1092.27" Canvas.Left="0" Canvas.Top="-0.265381" Stretch="Fill" Fill="#CDD5D5D5" Data="F1 M 0,545.871C 0,244.245 245.125,-0.265381 546.136,-0.265381C 847.755,-0.265381 1092.27,244.86 1092.27,545.871C 1092.27,847.489 847.14,1092 546.136,1092C 244.511,1092 0,846.875 0,545.871 Z "/>
                    </Canvas>
                    <Canvas x:Name="shouye" Width="1092" Height="1092" Canvas.Left="0" Canvas.Top="0">
                        <Path x:Name="Path_1" Width="94.08" Height="209.075" Canvas.Left="679.084" Canvas.Top="219.884" Stretch="Fill" Fill="#FF333333" Data="F1 M 726.124,219.884C 752.105,219.884 773.164,240.946 773.164,266.924L 773.164,381.918C 773.164,407.895 752.105,428.959 726.124,428.959C 700.142,428.959 679.084,407.895 679.084,381.918L 679.084,266.924C 679.084,240.946 700.142,219.884 726.124,219.884 Z "/>
                        <Path x:Name="Path_2" Width="618.987" Height="651.095" Canvas.Left="234.639" Canvas.Top="220.312" Stretch="Fill" Fill="#FF1C9DFF" Data="F1 M 451.082,831.758L 451.082,731.917C 451.082,706.615 471.67,686.063 497.169,685.903L 590.805,685.903C 616.421,685.903 637.184,706.502 637.184,731.917L 637.184,831.466C 637.184,853.411 655.03,871.247 677.149,871.406L 741.031,871.406C 770.865,871.48 799.508,859.776 820.632,838.871C 841.755,817.97 853.626,789.586 853.626,759.987L 853.626,476.38C 853.626,452.471 842.944,429.79 824.456,414.452L 607.434,242.262C 569.495,212.144 515.315,213.118 478.498,244.578L 266.143,414.452C 246.784,429.338 235.212,452.088 234.639,476.38L 234.639,759.698C 234.639,821.393 285.051,871.406 347.234,871.406L 409.661,871.406C 420.308,871.48 430.548,867.338 438.106,859.893C 445.665,852.452 449.915,842.324 449.915,831.758"/>
                    </Canvas>
                </Canvas>
            </Viewbox>
            <TextBlock Grid.Column="1" Text="主页" Style="{StaticResource ItemTextBlock}"/>
        </Grid>

        <Grid Style="{StaticResource ItemGrid}" MouseUp="Grid_MouseUp" Tag="Matrix.PageMatrix">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="3*"/>
                <ColumnDefinition Width="7*"/>
            </Grid.ColumnDefinitions>
            <Image Source="pack://application:,,,/智动启停;component/Images/StatusBar/windturbine_matrix.png" Style="{StaticResource ItemImage}"/>
            <TextBlock Grid.Column="1" Text="风机矩阵" Style="{StaticResource ItemTextBlock}"/>
        </Grid>
        <Grid Style="{StaticResource ItemGrid}" MouseUp="Grid_MouseUp" Tag="BoostStation.PageBoostStation2" Visibility="Collapsed">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="3*"/>
                <ColumnDefinition Width="7*"/>
            </Grid.ColumnDefinitions>
            <Image Source="pack://application:,,,/智动启停;component/Images/StatusBar/booster_station.png" Style="{StaticResource ItemImage}"/>
            <TextBlock Grid.Column="1" Text="升压站" Style="{StaticResource ItemTextBlock}"/>
        </Grid>
        <Grid Style="{StaticResource ItemGrid}" MouseUp="Grid_MouseUp" Tag="Alarm.PageAlarmCenter" Visibility="Collapsed">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="3*"/>
                <ColumnDefinition Width="7*"/>
            </Grid.ColumnDefinitions>
            <Image Source="pack://application:,,,/智动启停;component/Images/StatusBar/alarm_center.png" Style="{StaticResource ItemImage}"/>
            <TextBlock Grid.Column="1" Text="报警中心" Style="{StaticResource ItemTextBlock}"/>
        </Grid>
        <Grid Style="{StaticResource ItemGrid}" MouseUp="Grid_MouseUp" Tag="AGC.PageAGC">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="3*"/>
                <ColumnDefinition Width="7*"/>
            </Grid.ColumnDefinitions>
            <Image Source="pack://application:,,,/智动启停;component/Images/StatusBar/agc.png" Style="{StaticResource ItemImage}"/>
            <TextBlock Grid.Column="1" Text="AGC监控" Style="{StaticResource ItemTextBlock}"/>
        </Grid>
        <Grid Style="{StaticResource ItemGrid}" MouseUp="Grid_MouseUp" Tag="calculation_result_playback" Visibility="Collapsed">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="3*"/>
                <ColumnDefinition Width="7*"/>
            </Grid.ColumnDefinitions>
            <Image Source="pack://application:,,,/智动启停;component/Images/StatusBar/calculation_result_playback.png" Style="{StaticResource ItemImage}"/>
            <TextBlock Grid.Column="1" Text="计算结果回放" Style="{StaticResource ItemTextBlock}"/>
        </Grid>
        <Grid Style="{StaticResource ItemGrid}" MouseUp="Grid_MouseUp" Tag="Help.PageHelp" Visibility="Collapsed">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="3*"/>
                <ColumnDefinition Width="7*"/>
            </Grid.ColumnDefinitions>
            <Image Source="pack://application:,,,/智动启停;component/Images/StatusBar/help.png" Style="{StaticResource ItemImage}"/>
            <TextBlock Grid.Column="1" Text="帮助" Style="{StaticResource ItemTextBlock}"/>
        </Grid>
        <Grid Style="{StaticResource ItemGrid}" MouseUp="Grid_MouseUp" Tag="datalink" Visibility="Collapsed">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="3*"/>
                <ColumnDefinition Width="7*"/>
            </Grid.ColumnDefinitions>
            <Image Source="pack://application:,,,/智动启停;component/Images/StatusBar/agc.png" Style="{StaticResource ItemImage}"/>
            <TextBlock Grid.Column="1" Text="数据链路" Style="{StaticResource ItemTextBlock}"/>
        </Grid>

        <Grid Style="{StaticResource ItemGrid}" MouseUp="Grid_MouseUp" Tag="Home.StateTimePage" Visibility="Collapsed">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="3*"/>
                <ColumnDefinition Width="7*"/>
            </Grid.ColumnDefinitions>
            <Viewbox Width="31" Height="31">
                <Canvas Width="1092" Height="1092">
                    <Path Data="M988.05248 731.32544l-401.59232 241.00864c-11.10016 6.64064-25.67168 9.9584-40.1408 9.9584-14.52544 0-29.09696-3.31776-40.19712-9.9584l-401.5872-241.00864c-22.15424-13.2608-22.15424-34.88768 0-48.17408l68.096-40.83712 309.89824 185.94816c17.792 10.65472 40.39168 16.50688 63.78496 16.50688 23.34208 0 45.94176-5.85216 63.72864-16.50688l309.89824-185.94816 68.10112 40.83712c22.15936 13.28128 22.15936 34.91328 0.01024 48.17408z" Fill="#FF1C9DFF"/>
                    <Path Data="M988.05248 547.99872l-401.59232 240.94208c-11.10016 6.64064-25.67168 9.984-40.1408 9.984-14.52544 0-29.09696-3.34336-40.19712-9.984l-401.5872-240.94208c-22.15424-13.33248-22.15424-34.88768 0-48.22016l68.096-40.86272 309.89824 185.94816c17.792 10.65472 40.39168 16.55296 63.78496 16.55296 23.34208 0 45.94176-5.89824 63.72864-16.55296l309.89824-185.94816 68.10112 40.86272c22.15936 13.33248 22.15936 34.8928 0.01024 48.22016z" Fill="#FF1C9DFF"/>
                    <Path Data="M988.05248 364.60032l-401.59232 241.01376c-11.10016 6.61504-25.67168 9.9584-40.1408 9.9584-14.52544 0-29.09696-3.34336-40.19712-9.9584L104.53504 364.60032c-22.15424-13.25568-22.15424-34.88768 0-48.17408l401.5872-240.98304c11.10016-6.64064 25.67168-9.96352 40.19712-9.96352 14.46912 0 29.04064 3.31776 40.1408 9.96352l401.59232 240.98304c22.14912 13.2864 22.14912 34.9184 0 48.17408z" Fill="#FF1C9DFF"/>
                </Canvas>
            </Viewbox>
            <TextBlock Grid.Column="1" Text="状态时间" Style="{StaticResource ItemTextBlock}"/>
        </Grid>
    </StackPanel>
</UserControl>
