<Page x:Class="NEIntelligentControl2.Pages.Home.PageWindturbineAGC"
      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.Pages.Home"
      xmlns:pb="clr-namespace:NEIntelligentControl2.Views.Matrix"
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="800"
      Title="PageWindturbineAGC" Loaded="Page_Loaded" Background="#FF3365BF">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>


        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>

            <TextBlock Text="风机矩阵" Foreground="WhiteSmoke" Margin="5" FontSize="20"/>
            
            <StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center">
                <TextBlock Text="装机容量：50 MW" FontSize="20" Foreground="WhiteSmoke" Margin="5,5,0,5" VerticalAlignment="Center"/>

                <TextBlock Text="日发电量：" FontSize="20" Foreground="WhiteSmoke" Margin="13,5,0,5" VerticalAlignment="Center"/>
                <TextBlock Text="20" x:Name="tbrf" FontSize="20" Foreground="WhiteSmoke" Margin="5" VerticalAlignment="Center"/>
                <TextBlock Text="MWh" FontSize="20" Foreground="WhiteSmoke" Margin="5" VerticalAlignment="Center"/>


                <TextBlock Text="月发电量：" FontSize="20" Foreground="WhiteSmoke" Margin="13,5,0,5" VerticalAlignment="Center"/>
                <TextBlock Text="20" x:Name="tbyf" FontSize="20" Foreground="WhiteSmoke" Margin="5" VerticalAlignment="Center"/>
                <TextBlock Text="MWh" FontSize="20" Foreground="WhiteSmoke" Margin="5" VerticalAlignment="Center"/>


                <TextBlock Text="年发电量：" FontSize="20" Foreground="WhiteSmoke" Margin="13,5,0,5" VerticalAlignment="Center"/>
                <TextBlock Text="20" x:Name="tbnf" FontSize="20" Foreground="WhiteSmoke" Margin="5" VerticalAlignment="Center"/>
                <TextBlock Text="MWh" FontSize="20" Foreground="WhiteSmoke" Margin="5" VerticalAlignment="Center"/>

                <TextBlock Text="年利用小时数：" FontSize="20" Foreground="WhiteSmoke" Margin="13,5,0,5" VerticalAlignment="Center"/>
                <TextBlock Text="12" x:Name="tbly" FontSize="20" Foreground="WhiteSmoke" Margin="5" VerticalAlignment="Center"/>
                <TextBlock Text="h" FontSize="20" Foreground="WhiteSmoke" Margin="5" VerticalAlignment="Center"/>


                <TextBlock Text="安全运行天数：" FontSize="20" Foreground="WhiteSmoke" Margin="13,5,0,5" VerticalAlignment="Center"/>
                <TextBlock Text="20" x:Name="aqts" FontSize="20" Foreground="WhiteSmoke" Margin="5" VerticalAlignment="Center"/>
            </StackPanel>
        </Grid>

        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Border Background="#FF3D67A2" Margin="0,7">
                    <TextBlock x:Name="_tbtitle1" TextWrapping="Wrap" VerticalAlignment="Center" Margin="2" Foreground="WhiteSmoke" FontSize="20"/>
                </Border>
                <pb:ProjectBlock x:Name="pb1" Grid.Column="1"/>
            </Grid>
            <Grid Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Border Background="#FF3D67A2" Margin="0,7">
                    <TextBlock x:Name="_tbtitle2" TextWrapping="Wrap" VerticalAlignment="Center" Margin="2" Foreground="WhiteSmoke" FontSize="20"/>
                </Border>
                <pb:ProjectBlock x:Name="pb2" Grid.Column="1"/>
            </Grid>
            <Grid Grid.Row="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Border Background="#FF3D67A2" Margin="0,7">
                    <TextBlock x:Name="_tbtitle3" TextWrapping="Wrap" VerticalAlignment="Center" Margin="2" Foreground="WhiteSmoke" FontSize="20"/>
                </Border>
                <pb:ProjectBlock x:Name="pb3" Grid.Column="1"/>
            </Grid>
        </Grid>

        <!--<Frame x:Name="_FrameMatrix" NavigationUIVisibility="Hidden" Grid.Row="1"/>-->

        <TextBlock Text="AGC监视" Grid.Row="2" Foreground="WhiteSmoke" Margin="5" FontSize="20"/>

        <Grid Grid.Row="3">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="5*"/>
                <ColumnDefinition Width="4*"/>
            </Grid.ColumnDefinitions>
            <Frame x:Name="_FrameAGC" NavigationUIVisibility="Hidden"/>

            <StackPanel Grid.Column="1" VerticalAlignment="Center" Margin="50,10">
                <Grid Margin="0,20">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="3*"/>
                        <ColumnDefinition Width="2*"/>
                        <ColumnDefinition Width="1*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="调度目标值：" FontSize="56"/>
                    <TextBlock Grid.Column="1" x:Name="tbpc"  Foreground="Red" FontSize="56"/>
                    <TextBlock Text="MW" Grid.Column="2" FontSize="56"/>
                </Grid>
                <Grid Margin="0,20">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="3*"/>
                        <ColumnDefinition Width="2*"/>
                        <ColumnDefinition Width="1*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="并网点有功：" FontSize="56"/>
                    <TextBlock Grid.Column="1" x:Name="tbps" Foreground="Red" FontSize="56"/>
                    <TextBlock Text="MW" Grid.Column="2" FontSize="56"/>
                </Grid>

                <Grid Margin="0,20">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="3*"/>
                        <ColumnDefinition Width="2*"/>
                        <ColumnDefinition Width="1*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="风场理论有功：" FontSize="56"/>
                    <TextBlock Grid.Column="1" x:Name="tbllgl" Foreground="Red" FontSize="56"/>
                    <TextBlock Text="MW" Grid.Column="2" FontSize="56"/>
                </Grid>
            </StackPanel>
        </Grid>
    </Grid>
</Page>
