<UserControl x:Class="VIZ.TVP.CBA.Module.NewSinglePlayerView"
                      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="0"/>
                <RowDefinition Height="60"/>
                <RowDefinition Height="40"/>
                <!--<RowDefinition Height="160"/>-->
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>

            <WrapPanel Grid.Row="2" VerticalAlignment="Center"  HorizontalAlignment="Left" Width="760" >
                <Grid>
                    <Grid.ColumnDefinitions>
                        <!--<ColumnDefinition Width="50"/>
                    <ColumnDefinition Width="120"/>  650-->

                        <ColumnDefinition Width="122"/>
                        <ColumnDefinition Width="140"/>
                        <ColumnDefinition Width="50"/>
                        <ColumnDefinition Width="140"/>
                        <ColumnDefinition Width="80"/>
                        <ColumnDefinition Width="50"/>
                        <ColumnDefinition Width="50"/>
                        <ColumnDefinition Width="80"/>
                        <ColumnDefinition Width="50"/>
                        </Grid.ColumnDefinitions>

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

                    <dxe:ComboBoxEdit  Grid.Column="1"  Name="com_TeamItem" Width="135"  HorizontalAlignment="Left" VerticalAlignment="Center" 
                          ItemsSource="{Binding Path=TeamItems,Mode=TwoWay}" SelectedItem="{Binding Path=SelectTeamItem,Mode=TwoWay}" SelectedIndex="{Binding SelectedIndex}"
                          FontSize="16">
                    </dxe:ComboBoxEdit>

                    <TextBlock Text="球员：" Grid.Column="2"  VerticalAlignment="Center" HorizontalAlignment="Right"  FontSize="16" />

                    <dxe:ComboBoxEdit  Grid.Column="3" x:Name="com_players" 
                          HorizontalAlignment="Left" VerticalAlignment="Center" Width="135"
                          ItemsSource="{Binding Path=PlayerItems,Mode=TwoWay}"
                          SelectedItem="{Binding Path=SelectPlayer,Mode=TwoWay}"  FontSize="16" />

                    <TextBlock Text="球衣号：" Grid.Column="4"  VerticalAlignment="Center" HorizontalAlignment="Right"  FontSize="16" />

                    <dxe:TextEdit Text="{Binding PlayNum,Mode=TwoWay}" Grid.Column="5"  VerticalAlignment="Center" HorizontalAlignment="Right"  FontSize="16" Width="50" ></dxe:TextEdit>

                    <TextBlock Text="项数：" Grid.Column="6"   VerticalAlignment="Center" HorizontalAlignment="Right"  FontSize="16" />

                    <dxe:ComboBoxEdit  Grid.Column="7" x:Name="com_matchStatsId" HorizontalAlignment="Center" VerticalAlignment="Center" Width="80"
                          ItemsSource="{Binding Path=MatchStatsIds,Mode=TwoWay}"
                          SelectedItem="{Binding Path=MatchStatsId,Mode=TwoWay}" FontSize="16">
                    </dxe:ComboBoxEdit>
                    <!--<Button Content="刷新" Command="{Binding BtnCmd}" HorizontalContentAlignment="Center"  
                              Grid.Column="10" Width="95" Height="40"  FontSize="16"/>
                   <Button Content="单人球员" Command="{Binding SingleCommand}" HorizontalContentAlignment="Center"  
                              Grid.Column="11" Width="95" Height="40"  FontSize="16"/>
                  <Button Content="MVP球员" Command="{Binding MVPCommand}" HorizontalContentAlignment="Center"  
                              Grid.Column="12" Width="95" Height="40"  FontSize="16"/>-->


                </Grid>
            </WrapPanel>

            <WrapPanel Grid.Row="1"  HorizontalAlignment="Left"  Width="760" VerticalAlignment="Center"  Margin="0,0,0,0">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="120"/>
                        <ColumnDefinition Width="175"/>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="130"/>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="130"/>
                      
                        </Grid.ColumnDefinitions>

                    <TextBlock Grid.Column="0" Text="标题："  FontSize="16" HorizontalAlignment="Right"  VerticalAlignment="Center"/>

                    <dxe:TextEdit Grid.Column="1"   Width="170"  FontSize="16"   HorizontalContentAlignment="Left" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding Title,Mode=TwoWay }"></dxe:TextEdit>

                    <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 BtnCmd}" HorizontalContentAlignment="Center"  
                              Grid.Column="5" Width="95" Height="30"  FontSize="14"/>-->


                        <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.Row="0" Grid.Column="0" Content="刷新"  Glyph='/VIZ.TVP.CBA.Module;component/Image/CBAPng/refresh2525.png' FontSize="16" 
                                          Command="{Binding BtnCmd}" 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="3" Margin="190,0,0,0">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition  Width="200"/>
                    <ColumnDefinition  Width="200"/>
                </Grid.ColumnDefinitions>

                <dxe:ImageEdit Grid.Column="0" Height="150" Width="120" x:Name="Player_Logo" ShowMenu="False" EditValue="{Binding Path=PlayerLogo}"  
                               ShowLoadDialogOnClickMode="Never" Margin="0,0,0,10"/>
                -->
            <!--<dxe:ImageEdit Grid.Column="1" Height="150" Width="120" x:Name="Away_TeamLogo" ShowMenu="False" EditValue="{Binding Path=AwayTeamLogo}" 
                               ShowLoadDialogOnClickMode="Never" Margin="-25,0,0,0"/>-->
            <!--
            </Grid>

        </WrapPanel>-->
            <WrapPanel Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center"  Width="650" Margin="150,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="90"/>
                        <ColumnDefinition Width="127"/>
                        <ColumnDefinition Width="115"/>
                        <ColumnDefinition Width="120"/>
                    </Grid.ColumnDefinitions>

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

                    <!--第一项-->
                    <dxe:CheckEdit Grid.Row="1" HorizontalAlignment="Center" IsChecked="{Binding IsHeight}"  Visibility="{Binding IsCheckVisible,Mode=TwoWay}"/>

                    <dxe:ComboBoxEdit  Grid.Row="1" Grid.Column="1" 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="2"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding Score,Mode=TwoWay }" Visibility="{Binding ScoreVisible,Mode=TwoWay}" />
                    <dxe:TextEdit Grid.Row="1" Grid.Column="3"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding SeasonScore,Mode=TwoWay }" Visibility="{Binding SeasonScoreVisible,Mode=TwoWay}" />


                    <!--第二项-->
                    <dxe:CheckEdit Grid.Row="2" HorizontalAlignment="Center" IsChecked="{Binding IsHeight1}"  Visibility="{Binding IsCheckVisible1,Mode=TwoWay}"/>

                    <dxe:ComboBoxEdit  Grid.Row="2" Grid.Column="1" 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 TechStatsVisible1,Mode=TwoWay}">
                    </dxe:ComboBoxEdit>
                    <dxe:TextEdit Grid.Row="2" Grid.Column="2"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding Score1,Mode=TwoWay }" Visibility="{Binding ScoreVisible1,Mode=TwoWay}" />
                    <dxe:TextEdit Grid.Row="2" Grid.Column="3"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding SeasonScore1,Mode=TwoWay }" Visibility="{Binding SeasonScoreVisible1,Mode=TwoWay}" />


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

                    <dxe:ComboBoxEdit  Grid.Row="3" Grid.Column="1" 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="2"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding Score2,Mode=TwoWay }" Visibility="{Binding ScoreVisible2,Mode=TwoWay}" />
                    <dxe:TextEdit Grid.Row="3" Grid.Column="3"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding SeasonScore2,Mode=TwoWay }" Visibility="{Binding SeasonScoreVisible2,Mode=TwoWay}" />


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

                    <dxe:ComboBoxEdit  Grid.Row="4" Grid.Column="1" 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="2"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding Score3,Mode=TwoWay }" Visibility="{Binding ScoreVisible3,Mode=TwoWay}" />
                    <dxe:TextEdit Grid.Row="4" Grid.Column="3"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding SeasonScore3,Mode=TwoWay }" Visibility="{Binding SeasonScoreVisible3,Mode=TwoWay}" />


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

                    <dxe:ComboBoxEdit  Grid.Row="5" Grid.Column="1" 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="2"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding Score4,Mode=TwoWay }" Visibility="{Binding ScoreVisible4,Mode=TwoWay}" />
                    <dxe:TextEdit Grid.Row="5" Grid.Column="3"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding SeasonScore4,Mode=TwoWay }" Visibility="{Binding SeasonScoreVisible4,Mode=TwoWay}" />


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

                    <dxe:ComboBoxEdit  Grid.Row="6" Grid.Column="1" 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="2"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding Score5,Mode=TwoWay }" Visibility="{Binding ScoreVisible5,Mode=TwoWay}" />
                    <dxe:TextEdit Grid.Row="6" Grid.Column="3"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding SeasonScore5,Mode=TwoWay }" Visibility="{Binding SeasonScoreVisible5,Mode=TwoWay}" />



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

                    <dxe:ComboBoxEdit  Grid.Row="7" Grid.Column="1" 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="2"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding Score6,Mode=TwoWay }" Visibility="{Binding ScoreVisible6,Mode=TwoWay}" />
                    <dxe:TextEdit Grid.Row="7" Grid.Column="3"   Width="110" 
                         FontSize="16"   HorizontalContentAlignment="Center" 
                         HorizontalAlignment="Center" VerticalAlignment="Center"  Text="{Binding SeasonScore6,Mode=TwoWay }" Visibility="{Binding SeasonScoreVisible6,Mode=TwoWay}" />



                </Grid>

            </WrapPanel>

            <!--<DockPanel  Grid.Row="4">
            <ScrollViewer HorizontalScrollBarVisibility="Disabled"
                      VerticalScrollBarVisibility="Auto"
                      Name="PART_Options"
                      DockPanel.Dock="Right"
                      dx:ScrollBarExtensions.ScrollBarMode="TouchOverlap"
                      Focusable="False">

            </ScrollViewer>
            <dxg:GridControl x:Name="grid" ShowBorder="False" ItemsSource="{Binding Path= SinglePlayerData,Mode=TwoWay}">


                <dxg:GridColumn FieldName="SelectLight"  Header="" Width="112">
                    <dxg:GridColumn.EditSettings>
                        <dxe:ComboBoxEditSettings 
                                        ItemsSource="{Binding Source={x:Static Member=storage:StaticEnumInfos.EnumDescriptions}}" IsTextEditable="False" />
                    </dxg:GridColumn.EditSettings>
                </dxg:GridColumn>

                <dxg:GridColumn FieldName="TechStatsName"  Header="" Width="112">
                    <dxg:GridColumn.EditSettings>
                        <dxe:ComboBoxEditSettings 
                                        ItemsSource="{Binding Source={x:Static Member=storage:StaticEnumInfos.EnumTechStatsDescriptions}}" IsTextEditable="False" />
                    </dxg:GridColumn.EditSettings>
                </dxg:GridColumn>

                <dxg:GridColumn FieldName="Score"  Header="本场" Width="112"  />
                <dxg:GridColumn FieldName="SeasonScore"  Header="赛季" Width="112"    />

                -->
            <!--#endregion-->
            <!--
                <dxg:GridControl.View>
                    <dxg:TableView AutoWidth="True"  ShowGroupPanel="False" 
                               BorderThickness="0"  
                               ShowFilterPanelMode="Never" 
                               AllowColumnFiltering="False"
                               AllowSorting="False"
                               IsColumnMenuEnabled="False" >
                        -->
            <!--<dxg:TableView.RowStyle>
                            <Style   TargetType="{x:Type dxg:RowControl}" >
                                <Setter Property="Visibility" Value="{Binding IsVisiblity,Mode=TwoWay}"/>
                            </Style>
                        </dxg:TableView.RowStyle>-->
            <!--
                    </dxg:TableView>


                </dxg:GridControl.View>

            </dxg:GridControl>
        </DockPanel>-->

         </Grid>

        </ScrollViewer>
    </Grid>
</UserControl>
