<UserControl x:Class="VIZ.TVP.CBA.Module.NewTeamStatsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
                      xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
                      xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
                      xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
                      xmlns:dxrudex="http://schemas.devexpress.com/winfx/2008/xaml/reports/userdesignerextensions"
                      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                      xmlns:core="clr-namespace:VIZ.Framework.Core;assembly=VIZ.Framework.Core"
                      xmlns:storage="clr-namespace:VIZ.TVP.CBA.Module">
    <Grid>
        <ScrollViewer HorizontalScrollBarVisibility="Disabled"
                      VerticalScrollBarVisibility="Auto"
                      Name="PART_Options"
                      DockPanel.Dock="Right"
                      dx:ScrollBarExtensions.ScrollBarMode="TouchOverlap"
                      Focusable="False">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="197*"/>
                </Grid.ColumnDefinitions>
                
                <Grid.RowDefinitions>
                    <RowDefinition Height="60"/>
                    <RowDefinition Height="40"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>

                <WrapPanel Grid.Row="1"   VerticalAlignment="Center" HorizontalAlignment="Left" Width="760" >
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="75"/>
                            <ColumnDefinition Width="0"/>
                            <ColumnDefinition Width="120"/>
                            <ColumnDefinition Width="40"/>
                            <ColumnDefinition Width="120"/>
                            <ColumnDefinition Width="50"/>
                            <ColumnDefinition Width="100"/>
                        </Grid.ColumnDefinitions>

                        <TextBlock Grid.Column="0" Text="球队："  FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        <!--<dxe:TextEdit  Grid.Column="1" Width="120"  FontSize="16"   HorizontalContentAlignment="Center" 
                          VerticalAlignment="Center"  Text="{Binding Title,Mode=TwoWay }"   />-->

                        <dxe:TextEdit Text="{Binding HomeTeam}" Grid.Column="2" Width="120" HorizontalAlignment="Center" VerticalAlignment="Center"  FontSize="16"/>

                        <TextBlock  TextBlock.TextAlignment="Center" Text="VS" Width="60" Grid.Column="3"  FontSize="16"  HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        <dxe:TextEdit Text="{Binding AwayTeam}"  Grid.Column="4" Width="120"  FontSize="16"  HorizontalAlignment="Center" VerticalAlignment="Center"/>


                        <TextBlock  Grid.Column="5" TextBlock.TextAlignment="Center" Text="项数:" Width="45"  FontSize="16"   HorizontalAlignment="Right" VerticalAlignment="Center" />
                        <dxe:ComboBoxEdit  Grid.Column="6" x:Name="com_matchStatsId"  HorizontalAlignment="Center" VerticalAlignment="Center" Width="80" FontSize="16" 
                          ItemsSource="{Binding Path=MatchStatsIds,Mode=TwoWay}"
                          SelectedItem="{Binding Path=MatchStatsId,Mode=TwoWay}" >
                        </dxe:ComboBoxEdit>

                    </Grid>
                </WrapPanel>

                <WrapPanel   VerticalAlignment="Center" HorizontalAlignment="Left"  Width="760" Grid.ColumnSpan="2">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="75"/>
                            <ColumnDefinition Width="175"/>
                            <ColumnDefinition Width="130"/>
                            <ColumnDefinition Width="130"/>
                            <ColumnDefinition Width="110"/>
                            <ColumnDefinition Width="130"/>
                           
                        </Grid.ColumnDefinitions>

                        <TextBlock Grid.Column="0" Text="标题："  FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        <dxe:TextEdit  Grid.Column="1" Width="170"  FontSize="16"  HorizontalAlignment="Left"  HorizontalContentAlignment="Left" 
                          VerticalAlignment="Center"  Text="{Binding Title,Mode=TwoWay }"   />
                        <Button  Content="任务开始"  Name="task_Start" Click="task_Start_Click" Grid.Column="2" FontSize="14" Height="30" Width="90"/>

                        <Button  Content="任务暂停"  Name="task_continue" Click="task_continue_Click" Grid.Column="3" FontSize="14" Height="30" Width="90"/>

                        <Button  Content="任务停止"  Name="task_Stop" Click="task_Stop_Click" Grid.Column="4" FontSize="14" Height="30" Width="90"/>

                        <!--<Button Content="刷新" Command="{Binding BtnCommand}" HorizontalContentAlignment="Center"  
                              Grid.Column="5" Width="95" Height="30"  FontSize="14"/>-->




                        <WrapPanel Grid.Row="0" Grid.Column="5" HorizontalAlignment="Center" VerticalAlignment="Center">

                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="100"/>
                                    <ColumnDefinition Width="30"/>
                                </Grid.ColumnDefinitions>

                                <dx:SimpleButton  Grid.Row="0" Grid.Column="0" Content="刷新"  Glyph='/VIZ.TVP.CBA.Module;component/Image/CBAPng/refresh2525.png' FontSize="16" 
                                          Command="{Binding BtnCommand}" HorizontalContentAlignment="Center" Width="90" Height="30" />

                                <dx:SimpleButton  Grid.Row="0" Grid.Column="1"  Glyph='/VIZ.TVP.CBA.Module;component/Image/CBAPng/Prompt2525.png' FontSize="16" 
                                          Command="{Binding PromptCommand}" HorizontalContentAlignment="Center"  Width="30" Height="30"  />
                            </Grid>
                        </WrapPanel>


                    </Grid>
                </WrapPanel>

                <WrapPanel Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center"  Width="760" Grid.ColumnSpan="2">

                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="34"/>
                            <RowDefinition Height="34"/>
                            <RowDefinition Height="34"/>
                            <RowDefinition Height="34"/>
                            <RowDefinition Height="34"/>
                            <RowDefinition Height="34"/>
                            <RowDefinition Height="34"/>
                            <RowDefinition Height="34"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"/>
                            <ColumnDefinition Width="115"/>
                            <ColumnDefinition Width="116"/>
                            <ColumnDefinition Width="127"/>
                            <ColumnDefinition Width="115"/>
                            <ColumnDefinition Width="115"/>
                        </Grid.ColumnDefinitions>

                        <TextBlock Grid.Row="0" Grid.Column="1" Text="主队本场" FontSize="12" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        <TextBlock Grid.Row="0" Grid.Column="2" Text="主队赛季" FontSize="12" HorizontalAlignment="Center" VerticalAlignment="Center"/>

                        <TextBlock Grid.Row="0" Grid.Column="4" Text="客队本场" FontSize="12" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        <TextBlock Grid.Row="0" Grid.Column="5" Text="客队赛季" FontSize="12" HorizontalAlignment="Center" VerticalAlignment="Center"/>

                        <!--第一项-->
                        <dxe:CheckEdit Grid.Row="1" HorizontalAlignment="Center" IsChecked="{Binding IsHeight}"  Visibility="{Binding IsCheckVisible,Mode=TwoWay}"/>
                        <dxe:TextEdit Grid.Row="1" Grid.Column="1"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HomeScore,Mode=TwoWay }"  Visibility="{Binding HScoreVisible,Mode=TwoWay}"/>
                        <dxe:TextEdit Grid.Row="1" Grid.Column="2"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HSeasonScore,Mode=TwoWay }"  Visibility="{Binding HSeasonScoreVisible,Mode=TwoWay}"/>
                        <dxe:ComboBoxEdit  Grid.Row="1" Grid.Column="3" x:Name="com_techStats" HorizontalAlignment="Center" VerticalAlignment="Center" Width="120" FontSize="16"
                          ItemsSource="{Binding Path=TechStats,Mode=TwoWay}"
                          SelectedItem="{Binding Path=SelectTechStats,Mode=TwoWay}" Visibility="{Binding TechStatsVisible,Mode=TwoWay}">
                        </dxe:ComboBoxEdit>
                        <dxe:TextEdit Grid.Row="1" Grid.Column="4"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding AwayScore,Mode=TwoWay }" Visibility="{Binding AScoreVisible,Mode=TwoWay}" />
                        <dxe:TextEdit Grid.Row="1" Grid.Column="5"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding ASeasonScore,Mode=TwoWay }" Visibility="{Binding ASeasonScoreVisible}" />

                        <!--第二项-->
                        <dxe:CheckEdit Grid.Row="2" HorizontalAlignment="Center" IsChecked="{Binding IsHeight1}"  Visibility="{Binding IsCheckVisible1,Mode=TwoWay}"/>
                        <dxe:TextEdit Grid.Row="2" Grid.Column="1"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HomeScore1,Mode=TwoWay }"  Visibility="{Binding HScoreVisible1,Mode=TwoWay}"/>
                        <dxe:TextEdit Grid.Row="2" Grid.Column="2"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HSeasonScore1,Mode=TwoWay }"  Visibility="{Binding HSeasonScoreVisible1,Mode=TwoWay}"/>
                        <dxe:ComboBoxEdit  Grid.Row="2" Grid.Column="3" x:Name="com_techStats1" HorizontalAlignment="Center" VerticalAlignment="Center" Width="120" FontSize="16"
                          ItemsSource="{Binding Path=TechStats1,Mode=TwoWay}"
                          SelectedItem="{Binding Path=SelectTechStats1,Mode=TwoWay}" Visibility="{Binding TechStatsVisible,Mode=TwoWay}">
                        </dxe:ComboBoxEdit>
                        <dxe:TextEdit Grid.Row="2" Grid.Column="4"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding AwayScore1,Mode=TwoWay }" Visibility="{Binding AScoreVisible1,Mode=TwoWay}" />
                        <dxe:TextEdit Grid.Row="2" Grid.Column="5"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding ASeasonScore1,Mode=TwoWay }" Visibility="{Binding ASeasonScoreVisible1}" />


                        <!--第三项-->
                        <dxe:CheckEdit Grid.Row="3" HorizontalAlignment="Center" IsChecked="{Binding IsHeight2}"  Visibility="{Binding IsCheckVisible2,Mode=TwoWay}"/>

                        <dxe:TextEdit Grid.Row="3" Grid.Column="1"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HomeScore2,Mode=TwoWay }"  Visibility="{Binding HScoreVisible12,Mode=TwoWay}"/>

                        <dxe:TextEdit Grid.Row="3" Grid.Column="2"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HSeasonScore2,Mode=TwoWay }"  Visibility="{Binding HSeasonScoreVisible12,Mode=TwoWay}"/>

                        <dxe:ComboBoxEdit  Grid.Row="3" Grid.Column="3" x:Name="com_techStats2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="120" FontSize="16"
                          ItemsSource="{Binding Path=TechStats2,Mode=TwoWay}"
                          SelectedItem="{Binding Path=SelectTechStats2,Mode=TwoWay}" Visibility="{Binding TechStatsVisible2,Mode=TwoWay}">
                        </dxe:ComboBoxEdit>

                        <dxe:TextEdit Grid.Row="3" Grid.Column="4"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding AwayScore2,Mode=TwoWay }" Visibility="{Binding AScoreVisible2,Mode=TwoWay}" />

                        <dxe:TextEdit Grid.Row="3" Grid.Column="5"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding ASeasonScore2,Mode=TwoWay }" Visibility="{Binding ASeasonScoreVisible2}" />




                        <!--第四项-->
                        <dxe:CheckEdit Grid.Row="4" HorizontalAlignment="Center" IsChecked="{Binding IsHeight3}"  Visibility="{Binding IsCheckVisible3,Mode=TwoWay}"/>

                        <dxe:TextEdit Grid.Row="4" Grid.Column="1"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HomeScore3,Mode=TwoWay }"  Visibility="{Binding HScoreVisible13,Mode=TwoWay}"/>

                        <dxe:TextEdit Grid.Row="4" Grid.Column="2"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HSeasonScore3,Mode=TwoWay }"  Visibility="{Binding HSeasonScoreVisible13,Mode=TwoWay}"/>

                        <dxe:ComboBoxEdit  Grid.Row="4" Grid.Column="3" x:Name="com_techStats3" HorizontalAlignment="Center" VerticalAlignment="Center" Width="120" FontSize="16"
                          ItemsSource="{Binding Path=TechStats3,Mode=TwoWay}"
                          SelectedItem="{Binding Path=SelectTechStats3,Mode=TwoWay}" Visibility="{Binding TechStatsVisible3,Mode=TwoWay}">
                        </dxe:ComboBoxEdit>

                        <dxe:TextEdit Grid.Row="4" Grid.Column="4"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding AwayScore3,Mode=TwoWay }" Visibility="{Binding AScoreVisible3,Mode=TwoWay}" />

                        <dxe:TextEdit Grid.Row="4" Grid.Column="5"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding ASeasonScore3,Mode=TwoWay }" Visibility="{Binding ASeasonScoreVisible3}" />



                        <!--第五项-->
                        <dxe:CheckEdit Grid.Row="5" HorizontalAlignment="Center" IsChecked="{Binding IsHeight4}"  Visibility="{Binding IsCheckVisible4,Mode=TwoWay}"/>

                        <dxe:TextEdit Grid.Row="5" Grid.Column="1"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HomeScore4,Mode=TwoWay }"  Visibility="{Binding HScoreVisible14,Mode=TwoWay}"/>

                        <dxe:TextEdit Grid.Row="5" Grid.Column="2"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HSeasonScore4,Mode=TwoWay }"  Visibility="{Binding HSeasonScoreVisible14,Mode=TwoWay}"/>

                        <dxe:ComboBoxEdit  Grid.Row="5" Grid.Column="3" x:Name="com_techStats4" HorizontalAlignment="Center" VerticalAlignment="Center" Width="120" FontSize="16"
                          ItemsSource="{Binding Path=TechStats4,Mode=TwoWay}"
                          SelectedItem="{Binding Path=SelectTechStats4,Mode=TwoWay}" Visibility="{Binding TechStatsVisible4,Mode=TwoWay}">
                        </dxe:ComboBoxEdit>

                        <dxe:TextEdit Grid.Row="5" Grid.Column="4"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding AwayScore4,Mode=TwoWay }" Visibility="{Binding AScoreVisible4,Mode=TwoWay}" />

                        <dxe:TextEdit Grid.Row="5" Grid.Column="5"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding ASeasonScore4,Mode=TwoWay }" Visibility="{Binding ASeasonScoreVisible4}" />



                        <!--第六项-->
                        <dxe:CheckEdit Grid.Row="6" HorizontalAlignment="Center" IsChecked="{Binding IsHeight5}"  Visibility="{Binding IsCheckVisible5,Mode=TwoWay}"/>

                        <dxe:TextEdit Grid.Row="6" Grid.Column="1"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HomeScore5,Mode=TwoWay }"  Visibility="{Binding HScoreVisible5,Mode=TwoWay}"/>

                        <dxe:TextEdit Grid.Row="6" Grid.Column="2"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HSeasonScore5,Mode=TwoWay }"  Visibility="{Binding HSeasonScoreVisible5,Mode=TwoWay}"/>

                        <dxe:ComboBoxEdit  Grid.Row="6" Grid.Column="3" x:Name="com_techStats5" HorizontalAlignment="Center" VerticalAlignment="Center" Width="120" FontSize="16"
                          ItemsSource="{Binding Path=TechStats5,Mode=TwoWay}"
                          SelectedItem="{Binding Path=SelectTechStats5,Mode=TwoWay}" Visibility="{Binding TechStatsVisible5,Mode=TwoWay}">
                        </dxe:ComboBoxEdit>

                        <dxe:TextEdit Grid.Row="6" Grid.Column="4"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding AwayScore5,Mode=TwoWay }" Visibility="{Binding AScoreVisible5,Mode=TwoWay}" />

                        <dxe:TextEdit Grid.Row="6" Grid.Column="5"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding ASeasonScore5,Mode=TwoWay }" Visibility="{Binding ASeasonScoreVisible5}" />


                        <!--第七项-->
                        <dxe:CheckEdit Grid.Row="7" HorizontalAlignment="Center" IsChecked="{Binding IsHeight6}"  Visibility="{Binding IsCheckVisible6,Mode=TwoWay}"/>

                        <dxe:TextEdit Grid.Row="7" Grid.Column="1"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HomeScore6,Mode=TwoWay }"  Visibility="{Binding HScoreVisible6,Mode=TwoWay}"/>

                        <dxe:TextEdit Grid.Row="7" Grid.Column="2"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HSeasonScore6,Mode=TwoWay }"  Visibility="{Binding HSeasonScoreVisible6,Mode=TwoWay}"/>

                        <dxe:ComboBoxEdit  Grid.Row="7" Grid.Column="3" x:Name="com_techStats6" HorizontalAlignment="Center" VerticalAlignment="Center" Width="120" FontSize="16"
                          ItemsSource="{Binding Path=TechStats6,Mode=TwoWay}"
                          SelectedItem="{Binding Path=SelectTechStats6,Mode=TwoWay}" Visibility="{Binding TechStatsVisible6,Mode=TwoWay}">
                        </dxe:ComboBoxEdit>

                        <dxe:TextEdit Grid.Row="7" Grid.Column="4"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding AwayScore6,Mode=TwoWay }" Visibility="{Binding AScoreVisible6,Mode=TwoWay}" />

                        <dxe:TextEdit Grid.Row="7" Grid.Column="5"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding ASeasonScore6,Mode=TwoWay }" Visibility="{Binding ASeasonScoreVisible6}" />

                    </Grid>

                </WrapPanel>
            </Grid>
        </ScrollViewer>

    </Grid>
</UserControl>
