<UserControl x:Class="VIZ.TVP.WMCUP.Module.FComparePlayerView"
             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:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
             xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
             xmlns:local="clr-namespace:VIZ.TVP.WMCUP.Module"
             mc:Ignorable="d" 
            >
    <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="290"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <WrapPanel Grid.Row="0"  Width="765" HorizontalAlignment="Left" VerticalAlignment="Center"  >
                <Grid >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="0"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="110"/>
                        <RowDefinition Height="40"/>
                        <!--<RowDefinition Height="40"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="40"/>
                         <RowDefinition Height="40"/>
                         <RowDefinition Height="40"/>-->

                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="3"/>
                        <ColumnDefinition Width="67"/>
                        <ColumnDefinition Width="175"/>
                        <ColumnDefinition Width="130"/>
                        <ColumnDefinition Width="130"/>
                        <ColumnDefinition Width="127"/>
                        <ColumnDefinition Width="130"/>
                    </Grid.ColumnDefinitions>

                    <TextBlock Grid.Column="1"  Text="标题"  FontSize="16"  HorizontalAlignment="Left" VerticalAlignment="Center" Margin="16,0,0,0"  />


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

                        <Grid>

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

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

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



                 
                    <dxe:TextEdit Grid.Column="2"   Width="170" 
                         FontSize="16"   HorizontalContentAlignment="Left" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding Title,Mode=TwoWay }" />
                    <dxe:ListBoxEdit  Margin="48,6,0,0" Grid.Row="2" Grid.RowSpan="3"  Grid.Column="2" x:Name="com_HPlayer" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120" Height="178" FontSize="16" 
                          ItemsSource="{Binding Path=HPlayers,Mode=TwoWay}"
                          SelectedItem="{Binding Path=HPlayer,Mode=TwoWay}">
                    </dxe:ListBoxEdit>


                    <dxe:TextEdit Text="{Binding HName,Mode=TwoWay}"  Width="120"  FontSize="16" Grid.Column="3"  Grid.Row="2" VerticalAlignment="Center" Margin="5,0,5,0" />
                    <dxe:TextEdit Text="{Binding AName,Mode=TwoWay}"  Grid.Row="2" Grid.Column="4" Width="120"  FontSize="16"  VerticalAlignment="Center" Margin="5,0,5,0" />


                    <dxe:ListBoxEdit  Grid.Row="2" Grid.RowSpan="3" Grid.Column="5" x:Name="com_APlayer" HorizontalAlignment="Center" VerticalAlignment="Top" Width="120" Height="178" FontSize="16"
                          ItemsSource="{Binding Path=APlayers,Mode=TwoWay}"
                          SelectedItem="{Binding Path=APlayer,Mode=TwoWay}" Margin="0,6,0,0" >
                    </dxe:ListBoxEdit>


                    <WrapPanel Grid.Row="2" Grid.Column="6" VerticalAlignment="Center">

                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="45"/>
                                <ColumnDefinition Width="75"/>
                            </Grid.ColumnDefinitions>

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

                    </WrapPanel>

                    <dxe:TextEdit Grid.Row="3" Text="{Binding HNums,Mode=TwoWay}"  Width="70" FontSize="16"  Grid.Column="3" 
                         HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"/>

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

                    <dxe:ImageEdit Grid.Row="4" Grid.Column="3" Height="100" Width="120" x:Name="HPlayer_Logo" ShowMenu="False" EditValue="{Binding Path=HPlayerLogo}"  
                               ShowLoadDialogOnClickMode="Never" Margin="5,5,5,5"/>

                    <dxe:ImageEdit Grid.Row="4" Grid.Column="4" Height="100" Width="120" x:Name="APlayer_Logo" ShowMenu="False" EditValue="{Binding Path=APlayerLogo}" 
                               ShowLoadDialogOnClickMode="Never" Margin="5,5,5,5" />


                    <dxe:TextEdit Text="{Binding HomeImage,Mode=TwoWay}"  Width="120"  FontSize="16" Grid.Column="2"  Grid.Row="5" VerticalAlignment="Center" Margin="50,0,5,0" />
                    <dx:SimpleButton Grid.Row="5"  Grid.Column="3" Content="选择图片"  FontSize="16" 
                                          Command="{Binding BtmChooseHomeImage}" HorizontalContentAlignment="Center"   Width="90" Height="30"  />

                    <dx:SimpleButton Grid.Row="5"  Grid.Column="4" Content="选择图片"  FontSize="16" 
                                          Command="{Binding BtmChooseAwayImage}" HorizontalContentAlignment="Center"   Width="90" Height="30"  />

                    <dxe:TextEdit Text="{Binding AwayImage,Mode=TwoWay}"  Width="120"  FontSize="16" Grid.Column="5"  Grid.Row="5" VerticalAlignment="Center" Margin="2,0,5,0" />



                </Grid>
            </WrapPanel>


            <WrapPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"  Width="650"  Margin="60,0,0,0">

                <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="0"/>
                        <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="4" Text="客队得分" FontSize="12" HorizontalAlignment="Center" VerticalAlignment="Center"/>


                    <!--第一项-->

                    <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: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="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:TextEdit Grid.Row="3" Grid.Column="1"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HomeScore2,Mode=TwoWay }"  Visibility="{Binding HScoreVisible2,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:TextEdit Grid.Row="4" Grid.Column="1"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HomeScore3,Mode=TwoWay }"  Visibility="{Binding HScoreVisible3,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:TextEdit Grid.Row="5" Grid.Column="1"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding HomeScore4,Mode=TwoWay }"  Visibility="{Binding HScoreVisible4,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: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}" />-->


                </Grid>

            </WrapPanel>

        </Grid>

    </ScrollViewer>
</UserControl>
