<UserControl x:Class="VIZ.TVP.CBA.Module.DateHeaderView"
                      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:sys="clr-namespace:System;assembly=mscorlib"
                      xmlns:core="clr-namespace:VIZ.Framework.Core;assembly=VIZ.Framework.Core"
                      xmlns:storage="clr-namespace:VIZ.TVP.CBA.Module"
                      xmlns:common="clr-namespace:VIZ.Package.Common;assembly=VIZ.Package.Common"
                      xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
                      x:Name="uc"
             mc:Ignorable="d"
             d:DesignHeight="800" d:DesignWidth="800" >

    <UserControl.Resources>
        <!--<local:DemoDataProvider x:Key="DemoDataProvider" />-->
        <storage:DecimalToConverter x:Key="decimalConverter" />
        <DataTemplate x:Key="clipTemplate">
            <!--<Grid Width="7" Height="15" ToolTipService.ToolTip="{Binding}" Background="Transparent">
                <Path Stretch="Fill"
                      Fill="#FF000000"
                      Data="F1 M 1222.51,786C 1220.9,786.008 1219.72,785.446 1219,784.57C 1218.27,783.699 1218.01,782.58 1218.01,781.501L 1218,771.999L 1219,771.999L 1219.01,781.501C 1219.07,783.357 1219.78,784.96 1222.51,785.001C 1225.24,784.96 1225.95,783.357 1226.01,781.501L 1226,770.502C 1225.93,768.68 1225.32,768.077 1223.5,768C 1221.68,768.077 1221.07,768.68 1221,770.502L 1221,775.502C 1221,775.996 1221.01,776.692 1221.21,777.189C 1221.44,777.682 1221.68,777.976 1222.5,778.001C 1223.32,777.976 1223.56,777.682 1223.79,777.189C 1223.99,776.692 1224,775.996 1224,775.502L 1224,773.126C 1224,772.25 1224,771.999 1224,771.999L 1225,771.999C 1225,771.999 1225,774.5 1225,775.502C 1225,776.005 1225.01,776.81 1224.71,777.562C 1224.44,778.32 1223.68,779.026 1222.5,779C 1221.32,779.026 1220.56,778.32 1220.29,777.562C 1219.99,776.81 1220,776.005 1220,775.502C 1220,774.5 1220,772.502 1220,770.502C 1220,769.424 1220.27,768.521 1220.9,767.897C 1221.52,767.275 1222.42,766.999 1223.5,767.001C 1224.58,766.999 1225.48,767.275 1226.1,767.897C 1226.73,768.521 1227,769.424 1227,770.502L 1227.01,781.501C 1227.01,782.58 1226.74,783.699 1226.02,784.57C 1225.3,785.439 1224.13,786 1222.54,786L 1222.51,786 Z " />
            </Grid>-->
        </DataTemplate>

        <ControlTemplate x:Key="ActiveDisplayTemplateScore">
            <Border Background="Transparent">
                <dxe:ProgressBarEdit EditMode="InplaceInactive"
                                     Minimum="0"
                                     Maximum="{Binding Path=TotalScore}"
                                     EditValue="{Binding EditValue,  RelativeSource={RelativeSource TemplatedParent}}"
                                     ContentDisplayMode="Value" />
            </Border>
        </ControlTemplate>
        <Style x:Name="gridCenter"  TargetType = "{x:Type dxg:GridColumn}" >
            <!--列头居中-->
            <Setter  Property = "HorizontalHeaderContentAlignment"  Value = "Center"  />
            <!--列值居中-->
            <Setter  Property = "EditSettings" >
                <Setter.Value >
                    <dxe:TextEditSettings  HorizontalContentAlignment = "Center"  />
                </Setter.Value >
            </Setter >
        </Style >

    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="40"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <WrapPanel  Grid.Row="0" VerticalAlignment="Center">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80"/>
                    <ColumnDefinition Width="120"/>
                    <ColumnDefinition Width="80"/>
                    <ColumnDefinition Width="80"/>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition Width="280"/>
                </Grid.ColumnDefinitions>
                
                <TextBlock Text="比赛日期:" Grid.Column="0" FontSize="14"  HorizontalAlignment="Center" VerticalAlignment="Center"/>
                <dxe:DateEdit Grid.Column="1" HorizontalAlignment="Center" Name="Date_MatchDateInfo" Width="120" 
                              EditValue="{Binding MatchDate,Mode=TwoWay}" FontSize="16"     ShowToday="False" ShowClearButton="False"  
                                  VerticalAlignment="Center"  MaskUseAsDisplayFormat="True" >
                </dxe:DateEdit>
                <Button Grid.Column="2" Content="前一天"  FontSize="14" Width="70"  Height="30" Command="{Binding UpDateCmd}" />
                <Button Grid.Column="3" Content="后一天"  FontSize="14" Width="70"  Height="30" Command="{Binding DownDateCmd}" />
                <WrapPanel Grid.Column="4" VerticalAlignment="Center">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="80"/>
                            <ColumnDefinition Width="35"/>
                            <ColumnDefinition Width="35"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="数据源：" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="14" />
                        <RadioButton Content="主" FontSize="14" Grid.Column="1" IsChecked="{Binding MainDataConnection,Mode=TwoWay}"/>
                        <RadioButton Content="备" FontSize="14" Grid.Column="2" IsChecked="{Binding BackDataConnection,Mode=TwoWay}"/>
                    </Grid>
                </WrapPanel>

                <WrapPanel Grid.Column="5" VerticalAlignment="Center"  HorizontalAlignment="Right">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="40"/>
                            <ColumnDefinition Width="90"/>
                            <ColumnDefinition Width="30"/>
                            <ColumnDefinition Width="90"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Text="场次" FontSize="14" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        <TextBlock Grid.Column="1" Text="{Binding TeamHName,Mode=TwoWay}" FontSize="14" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        <TextBlock Grid.Column="2" Text="VS" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
                        <TextBlock Grid.Column="3" Text="{Binding TeamAName,Mode=TwoWay}" FontSize="14" HorizontalAlignment="Center" VerticalAlignment="Center"/>

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


        <TabControl Grid.Row="1" >

            <TabItem Header="今日赛程" >
                <Grid >

                    <Grid.RowDefinitions>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>

                    <DockPanel Grid.Row="0">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="150"/>
                                <ColumnDefinition Width="150"/>
                            </Grid.ColumnDefinitions>
                            <Button Grid.Column="0" Content="刷新赛程"  FontSize="14" Width="100"  Height="30" Command="{Binding RefreshDayMatchCmd}" />
                        </Grid>
                    </DockPanel>
                    
                    <DockPanel  Grid.Row="1" Grid.ColumnSpan="2">

                        <!--<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= MatchData,Mode=TwoWay}" SelectedItem="{Binding Path=SelectMatchData,Mode=TwoWay}" >
                            <dxg:GridControl.Columns>
                                <dxg:GridColumn FieldName="dates"  Header="日期" Width="112"  Style="{Binding Source=gridCenter}" />
                                <dxg:GridColumn FieldName="time"  Header="时间" Width="112"    />
                                <dxg:GridColumn FieldName="HomeTeamName" Header="主队" Width="180" />
                                <dxg:GridColumn FieldName="HomeTeamScore" Header="主队得分" Width="180"  >
                                    <!--<dxg:GridColumn.EditSettings>
                                    <dxe:TextEditSettings MaskType="Numeric" Mask="d" HorizontalContentAlignment="Center" />
                                </dxg:GridColumn.EditSettings>-->
                                </dxg:GridColumn>
                                <dxg:GridColumn FieldName="VisitingTeamName" Header="客队" Width="180" />
                                <dxg:GridColumn FieldName="VisitingTeamScore" Header="客队得分" Width="180" />
                                <dxg:GridColumn FieldName="Round" Header="比赛轮次" Width="180" />
                                <dxg:GridColumn FieldName="Status"  Header="比赛状态" Width="180"  />
                            </dxg:GridControl.Columns>
                            <!--#endregion-->
                            <dxg:GridControl.View>
                               <!--<dxg:TableView AutoWidth="True"  
                                    ShowGroupPanel="False" 
                                    BorderThickness="0"  
                                    ShowFilterPanelMode="Never"
                                    AllowColumnFiltering="False"
                                    AllowSorting="False"
                                    AllowEditing="False"   
                                    IsColumnMenuEnabled="False">
                                </dxg:TableView>-->


                                <dxg:TableView IsColumnMenuEnabled="True"
                                                       IsColumnChooserVisible="{Binding Path=IsColumnChooserVisible,Mode=TwoWay}"
                                                       AllowEditing="False" ShowIndicator="False"  AutoWidth="True"
                                                       NavigationStyle="Cell" ShowVerticalLines="False" ShowHorizontalLines="False"
                                                       ShowGroupPanel="False" EditorShowMode="MouseDown"
                                                       AllowDragDrop="True"
                                                       AlternateRowBackground="#05ffffff"
                                                       ShowBandsPanel="False"
                                                       ShowTotalSummary="False"
                                                       ShowFixedTotalSummary="False" 
                                                       ShowDragDropHint="False" 
                                                       AllowSorting="False" 
                                                       AllowColumnFiltering="False"
                                                       ShowTargetInfoInDragDropHint="false">

                                    <dxmvvm:Interaction.Behaviors>
                                        <dxmvvm:EventToCommand EventName="ShowGridMenu" Command="{Binding ElementName=uc, Path=DataContext.ShowGridMenuCommand}" PassEventArgsToCommand="True"></dxmvvm:EventToCommand>
                                    </dxmvvm:Interaction.Behaviors>

                                    <dxg:TableView.ColumnMenuCustomizations>
                                        <dxb:BarButtonItem Name="ShowColumnChooser" Content="显示列选择" 
                                               Command="{Binding ElementName=uc,Path=DataContext.ColumnChoiceCommand}"
                                               Tag="{x:Static Member=common:GridControlHelper.KEEP_MENU_TAG}"/>
                                    </dxg:TableView.ColumnMenuCustomizations>

                                </dxg:TableView>


                            </dxg:GridControl.View>
                        </dxg:GridControl>
                    </DockPanel>
                </Grid>
            </TabItem>

            <TabItem Header="球队积分排行" >
                <Grid >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>


                    <DockPanel Grid.Row="0">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="150"/>
                                <ColumnDefinition Width="150"/>

                            </Grid.ColumnDefinitions>
                            <Button Grid.Column="0" Content="刷新积分"  FontSize="14" Width="100"  Height="30" Command="{Binding BtnCmd}" />
                        </Grid>
                    </DockPanel>

                    <DockPanel  Grid.Row="1">

                      <ScrollViewer HorizontalScrollBarVisibility="Disabled"
                      VerticalScrollBarVisibility="Auto"
                      Name="PART_Rank"
                      DockPanel.Dock="Right"
                      dx:ScrollBarExtensions.ScrollBarMode="TouchOverlap"
                      Focusable="False">

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

                            <dxg:GridColumn FieldName="Id"  Header="排名序号" Width="112"  />
                            <dxg:GridColumn FieldName="TeamCNAlias"  Header="球队名" Width="112"    />
                            <dxg:GridColumn FieldName="Wins" Header="胜" Width="180"   />
                            <dxg:GridColumn FieldName="Losses" Header="负" Width="180"   />
                            <dxg:GridColumn FieldName="WinningPercentageStr" Header="胜率" Width="180"   />
                            <dxg:GridColumn FieldName="Integral" Header="积分" Width="180"   />
                            <dxg:GridColumn FieldName="StreakNumber"  Header="连胜数" Width="180"  />
                            <dxg:GridColumn FieldName="StreakName"  Header="" Width="180"  />
                            <dxg:GridControl.View>
                                <!--<dxg:TableView AutoWidth="True"  ShowGroupPanel="False" 
                               BorderThickness="0"  
                               ShowFilterPanelMode="Never" 
                               AllowColumnFiltering="False"
                               AllowSorting="False"
                               AllowEditing="False"               
                               IsColumnMenuEnabled="False">
                                </dxg:TableView>-->
                                <dxg:TableView IsColumnMenuEnabled="True"
                                                       IsColumnChooserVisible="{Binding Path=IsColumnChooserVisible1,Mode=TwoWay}"
                                                       AllowEditing="False" ShowIndicator="False"  AutoWidth="True"
                                                       NavigationStyle="Cell" ShowVerticalLines="False" ShowHorizontalLines="False"
                                                       ShowGroupPanel="False" EditorShowMode="MouseDown"
                                                       AllowDragDrop="True"
                                                       AlternateRowBackground="#05ffffff"
                                                       ShowBandsPanel="False"
                                                       ShowTotalSummary="False"
                                                       ShowFixedTotalSummary="False" 
                                                       ShowDragDropHint="False" 
                                                       AllowSorting="False" 
                                                       AllowColumnFiltering="False"
                                                       ShowTargetInfoInDragDropHint="false">

                                    <dxmvvm:Interaction.Behaviors>
                                        <dxmvvm:EventToCommand EventName="ShowGridMenu" Command="{Binding ElementName=uc, Path=DataContext.ShowGridMenuCommand1}" PassEventArgsToCommand="True"></dxmvvm:EventToCommand>
                                    </dxmvvm:Interaction.Behaviors>

                                    <dxg:TableView.ColumnMenuCustomizations>
                                        <dxb:BarButtonItem Name="ShowColumnChooser1" Content="显示列选择" 
                                               Command="{Binding ElementName=uc,Path=DataContext.ColumnChoiceCommand1}"
                                               Tag="{x:Static Member=common:GridControlHelper.KEEP_MENU_TAG}"/>
                                    </dxg:TableView.ColumnMenuCustomizations>

                                </dxg:TableView>

                            </dxg:GridControl.View>
                        </dxg:GridControl>
                    </DockPanel>
                </Grid>
            </TabItem>

            <TabItem Header="球队数据" >
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>

                    <DockPanel Grid.Row="0">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="150"/>
                                <ColumnDefinition Width="150"/>

                            </Grid.ColumnDefinitions>
                            <Button Grid.Column="0" Content="刷新数据"  FontSize="14" Width="100"  Height="30" Command="{Binding RefreshCommand}" />
                        </Grid>
                    </DockPanel>
                    <DockPanel  Grid.Row="1">
                        <ScrollViewer HorizontalScrollBarVisibility="Disabled"
                         VerticalScrollBarVisibility="Auto"
                         Name="TeamStats"
                        DockPanel.Dock="Right"
                      dx:ScrollBarExtensions.ScrollBarMode="TouchOverlap"
                      Focusable="False">

                        </ScrollViewer>
                        <dxg:GridControl x:Name="TeamStatsGrid"  ItemsSource="{Binding Path= ShowInfoTeamStats,Mode=TwoWay}">
                            <dxg:GridColumn FieldName="TeamName"  Header="球队" Width="*" />
                            <dxg:GridColumn FieldName="Goal"  Header="得分" Width="*"   />
                            <dxg:GridColumn FieldName="Rebounds"  Header="篮板" Width="*"   />
                            <dxg:GridColumn FieldName="Assists"  Header="助攻" Width="*"  />
                            <dxg:GridColumn FieldName="Blocks"  Header="盖帽" Width="*"  />
                            <dxg:GridColumn FieldName="Steals"  Header="抢断" Width="*"   />
                            <dxg:GridColumn FieldName="Error"  Header="失误" Width="*"  />
                            <dxg:GridColumn FieldName="Foul"  Header="犯规" Width="*"  />
                            <dxg:GridColumn FieldName="FreeThrowP"  Header="罚球命中率" Width="*" />
                            <dxg:GridColumn FieldName="TwoShootingGoalP"  Header="两分命中率" Width="*" />
                            <dxg:GridColumn FieldName="ThreeShootingGoalP"  Header="三分命中率" Width="*" />
                            <dxg:GridColumn FieldName="ShootingGoalP"  Header="投篮命中率" Width="*" />
                            <dxg:GridColumn FieldName="ShootingUnderBaketP"  Header="篮下投篮命中率" Width="*" />
                            <dxg:GridColumn FieldName="MidShootingP"  Header="中距离投篮命中率" Width="*" />
                            <dxg:GridColumn FieldName="ThreeScore"  Header="三分" Width="*" />
                            <dxg:GridColumn FieldName="TwoScore"  Header="两分" Width="*" />
                            <!--<dxg:GridColumn FieldName="TwoArea"  Header="两分区" Width="*" />-->
                            <dxg:GridColumn FieldName="ThreeGoals"  Header="三分得分" Width="*"  />


                            <!--#endregion-->
                            <dxg:GridControl.View>
                                <!--<dxg:TableView AutoWidth="True"  ShowGroupPanel="False" 
                               BorderThickness="0"  
                               ShowFilterPanelMode="Never" 
                               AllowColumnFiltering="False"
                               AllowSorting="True"  
                               AllowEditing="False"     
                               IsColumnMenuEnabled="False"  >
                                </dxg:TableView>-->
                                
                                <dxg:TableView IsColumnMenuEnabled="True"
                                                       IsColumnChooserVisible="{Binding Path=IsColumnChooserVisible2,Mode=TwoWay}"
                                                       AllowEditing="False" ShowIndicator="False"  AutoWidth="True"
                                                       NavigationStyle="Cell" ShowVerticalLines="False" ShowHorizontalLines="False"
                                                       ShowGroupPanel="False" EditorShowMode="MouseDown"
                                                       AllowDragDrop="True"
                                                       AlternateRowBackground="#05ffffff"
                                                       ShowBandsPanel="False"
                                                       ShowTotalSummary="False"
                                                       ShowFixedTotalSummary="False" 
                                                       ShowDragDropHint="False" 
                                                       AllowSorting="False" 
                                                       AllowColumnFiltering="False"
                                                       ShowTargetInfoInDragDropHint="false">

                                    <dxmvvm:Interaction.Behaviors>
                                        <dxmvvm:EventToCommand EventName="ShowGridMenu" Command="{Binding ElementName=uc, Path=DataContext.ShowGridMenuCommand2}" PassEventArgsToCommand="True"></dxmvvm:EventToCommand>
                                    </dxmvvm:Interaction.Behaviors>

                                    <dxg:TableView.ColumnMenuCustomizations>
                                        <dxb:BarButtonItem Name="ShowColumnChooser2" Content="显示列选择" 
                                               Command="{Binding ElementName=uc,Path=DataContext.ColumnChoiceCommand2}"
                                               Tag="{x:Static Member=common:GridControlHelper.KEEP_MENU_TAG}"/>
                                    </dxg:TableView.ColumnMenuCustomizations>

                                </dxg:TableView>
                            </dxg:GridControl.View>
                        </dxg:GridControl>
                    </DockPanel>
                </Grid>
                
            </TabItem>

            <TabItem Header="球员数据">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>

                    <DockPanel Grid.Row="0">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="150"/>
                                <ColumnDefinition Width="150"/>
                                <ColumnDefinition Width="150"/>
                            </Grid.ColumnDefinitions>
                            <Button Content="{Binding TeamHName}"  Command="{Binding PlayerHCommand}" Width="120" Grid.Column="0" FontSize="14" HorizontalAlignment="Center" VerticalAlignment="Center"  Height="30"/>
                            <Button Content="{Binding TeamAName}"  Command="{Binding PlayerACommand}" Width="120" Grid.Column="1" FontSize="14" HorizontalAlignment="Center" VerticalAlignment="Center" Height="30"/>
                            <Button  Content="刷新数据"  Command="{Binding RefreshPlayerCommand}" Width="120" Grid.Column="3" FontSize="14" HorizontalAlignment="Center" VerticalAlignment="Center" Height="30"/>
                        </Grid>
                    </DockPanel>

                    <DockPanel  Grid.Row="1">
                       
                        <dxg:GridControl x:Name="PlayerStatsGrid"  ItemsSource="{Binding Path= ShowInfoPlayersStats,Mode=TwoWay}"    Grid.Row="0">
                            <dxg:GridColumn FieldName="PlayerName"  Header="姓名" Width="*" />
                            <dxg:GridColumn FieldName="PlayTime"  Header="上场时间" Width="*"  />
                            <dxg:GridColumn FieldName="Goal"  Header="得分" Width="*"  >
                                <dxg:GridColumn.EditSettings>
                                    <dxe:ProgressBarEditSettings ContentDisplayMode="Value" Minimum="0" Maximum="{Binding Path=TotalScore}" />
                                </dxg:GridColumn.EditSettings>

                            </dxg:GridColumn>
                            <dxg:GridColumn FieldName="Rebounds"  Header="篮板" Width="*" >
                                <dxg:GridColumn.EditSettings>
                                    <dxe:ProgressBarEditSettings ContentDisplayMode="Value" Minimum="0" Maximum="{Binding Path=TotalRebounds}" />
                                </dxg:GridColumn.EditSettings>
                            </dxg:GridColumn>
                            <dxg:GridColumn FieldName="Assists"  Header="助攻" Width="*" >
                                <dxg:GridColumn.EditSettings>
                                    <dxe:ProgressBarEditSettings ContentDisplayMode="Value" Minimum="0" Maximum="{Binding Path=TotalAssists}" />
                                </dxg:GridColumn.EditSettings>
                            </dxg:GridColumn>
                            <dxg:GridColumn FieldName="ThreeArea"  Header="三分区" Width="*"  />
                            <dxg:GridColumn FieldName="FreeThrow"  Header="罚球" Width="*" />
                            <dxg:GridColumn FieldName="ShootingGoalP"  Header="投篮命中率" Width="*" />
                            <dxg:GridColumn FieldName="Steals"  Header="抢断" Width="*"  />
                            <dxg:GridColumn FieldName="Blocks"  Header="盖帽" Width="*" />
                            <dxg:GridColumn FieldName="TwoShootingGoalP"  Header="两分命中率" Width="*" />
                            <dxg:GridColumn FieldName="ThreeShootingGoalP"  Header="三分命中率" Width="*" />
                            <dxg:GridColumn FieldName="FreeThrowP"  Header="罚球命中率" Width="*" />
                            <dxg:GridColumn FieldName="ShootingUnderBaketP"  Header="篮下投篮命中率" Width="*" />
                            <dxg:GridColumn FieldName="MidShootingP"  Header="中距离投篮命中率" Width="*" />
                            <dxg:GridColumn FieldName="ThreeScore"  Header="三分" Width="*" />
                            <dxg:GridColumn FieldName="TwoScore"  Header="两分" Width="*" />
                            <dxg:GridColumn FieldName="TwoArea"  Header="两分区" Width="*" />
                            <dxg:GridColumn FieldName="Error"  Header="失误" Width="*" />

                            <!--#endregion-->
                            <dxg:GridControl.View>
                                <dxg:TableView AutoWidth="True"  ShowGroupPanel="False" 
                               BorderThickness="0"  
                               ShowFilterPanelMode="Never"
                               AllowColumnFiltering="False"
                               AllowSorting="True"  
                               AllowEditing="False"       
                               IsColumnMenuEnabled="True"           >
                                </dxg:TableView>
                            </dxg:GridControl.View>

                        </dxg:GridControl>

                    </DockPanel>
                </Grid>
            </TabItem>

            <TabItem Header="球员赛季数据">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>

                    <DockPanel Grid.Row="0">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="150"/>
                                <ColumnDefinition Width="150"/>
                                <ColumnDefinition Width="150"/>
                            </Grid.ColumnDefinitions>
                            <Button Content="{Binding TeamHName}"  Command="{Binding PlayerSeasonHCommand}" Width="120" Grid.Column="0" FontSize="14" HorizontalAlignment="Center" VerticalAlignment="Center"  Height="30"/>
                            <Button Content="{Binding TeamAName}"  Command="{Binding PlayerSeasonACommand}" Width="120" Grid.Column="1" FontSize="14" HorizontalAlignment="Center" VerticalAlignment="Center" Height="30"/>
                            <Button  Content="刷新数据"  Command="{Binding RefreshPlayerSeasonCommand}" Width="120" Grid.Column="3" FontSize="14" HorizontalAlignment="Center" VerticalAlignment="Center" Height="30"/>
                        </Grid>
                    </DockPanel>

                    <DockPanel  Grid.Row="1">

                        <dxg:GridControl x:Name="PlayerSeasonStatas"  ItemsSource="{Binding Path= ShowPlayerStatsSeasonsData,Mode=TwoWay}"    Grid.Row="0">
                            <dxg:GridColumn FieldName="CNAlias"  Header="姓名" Width="*" />
                            <dxg:GridColumn FieldName="MinutesAverage"  Header="上场时间" Width="*"  />
                            <dxg:GridColumn FieldName="PointsAverage"  Header="得分" Width="*"  >
                                <!--<dxg:GridColumn.EditSettings>
                                    <dxe:ProgressBarEditSettings ContentDisplayMode="Value" Minimum="0" Maximum="{Binding Path=TotalScore}" />
                                </dxg:GridColumn.EditSettings>-->

                            </dxg:GridColumn>
                            <dxg:GridColumn FieldName="ReboundsAverage"  Header="篮板" Width="*" >
                                <!--<dxg:GridColumn.EditSettings>
                                    <dxe:ProgressBarEditSettings ContentDisplayMode="Value" Minimum="0" Maximum="{Binding Path=TotalRebounds}" />
                                </dxg:GridColumn.EditSettings>-->
                            </dxg:GridColumn>
                            <dxg:GridColumn FieldName="AssistsAverage"  Header="助攻" Width="*" >
                                <!--<dxg:GridColumn.EditSettings>
                                    <dxe:ProgressBarEditSettings ContentDisplayMode="Value" Minimum="0" Maximum="{Binding Path=TotalAssists}" />
                                </dxg:GridColumn.EditSettings>-->
                            </dxg:GridColumn>
                            <dxg:GridColumn FieldName="ThreePointGoalsAverageArea"  Header="三分区" Width="*"  />
                            <dxg:GridColumn FieldName="FreeThrowsAverage"  Header="罚球" Width="*" />
                            <dxg:GridColumn FieldName="FieldGoalsPercentageAverage"  Header="投篮命中率" Width="*" />
                            <dxg:GridColumn FieldName="StealsAverage"  Header="抢断" Width="*"  />
                            <dxg:GridColumn FieldName="BlockedAverage"  Header="盖帽" Width="*" />

                            <dxg:GridColumn FieldName="TwoPointPercentageAverage"  Header="两分命中率" Width="*" />
                            <dxg:GridColumn FieldName="ThreePointPercentageAverage"  Header="三分命中率" Width="*" />
                            <dxg:GridColumn FieldName="FreeThrowsPercentageAverage"  Header="罚球命中率" Width="*" />
                            
                            <!--<dxg:GridColumn FieldName="ShootingUnderBaketP"  Header="篮下投篮命中率" Width="*" />
                            <dxg:GridColumn FieldName="MidShootingP"  Header="中距离投篮命中率" Width="*" />-->

                            <dxg:GridColumn FieldName="ThreePointGoalsAverage"  Header="三分" Width="*" />
                            <dxg:GridColumn FieldName="TwoPointGoalsAverage"  Header="两分" Width="*" />
                            <dxg:GridColumn FieldName="TwoPointGoalsAverageArea"  Header="两分区" Width="*" />
                            <dxg:GridColumn FieldName="TurnoversAverage"  Header="失误" Width="*" />

                        
                            <dxg:GridControl.View>
                                <dxg:TableView AutoWidth="True"  ShowGroupPanel="False" 
                               BorderThickness="0"  
                               ShowFilterPanelMode="Never"
                               AllowColumnFiltering="False"
                               AllowSorting="True"  
                               AllowEditing="False"       
                               IsColumnMenuEnabled="True"           >
                                </dxg:TableView>
                            </dxg:GridControl.View>

                        </dxg:GridControl>

                    </DockPanel>
                </Grid>
            </TabItem>

            <TabItem Header="球队赛季数据">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>

                    <DockPanel Grid.Row="0">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="150"/>
                            </Grid.ColumnDefinitions>
                            <Button  Content="刷新数据"  Command="{Binding RefreshTeamSeasonCommand}" Width="120" Grid.Column="0" FontSize="14" HorizontalAlignment="Center" VerticalAlignment="Center" Height="30"/>
                        </Grid>
                    </DockPanel>

                    <DockPanel  Grid.Row="1">

                        <dxg:GridControl x:Name="TeamSeasonStatas"  ItemsSource="{Binding Path= ShowTeamStatsSeasonsData,Mode=TwoWay}"    Grid.Row="0">
                            <dxg:GridColumn FieldName="TeamCNAlias"  Header="球队" Width="*" />

                            <dxg:GridColumn FieldName="PointsAverage"  Header="得分" Width="*"  >
                                <!--<dxg:GridColumn.EditSettings>
                                    <dxe:ProgressBarEditSettings ContentDisplayMode="Value" Minimum="0" Maximum="{Binding Path=TotalScore}" />
                                </dxg:GridColumn.EditSettings>-->

                            </dxg:GridColumn>
                            <dxg:GridColumn FieldName="ReboundsAverage"  Header="篮板" Width="*" >
                                <!--<dxg:GridColumn.EditSettings>
                                    <dxe:ProgressBarEditSettings ContentDisplayMode="Value" Minimum="0" Maximum="{Binding Path=TotalRebounds}" />
                                </dxg:GridColumn.EditSettings>-->
                            </dxg:GridColumn>
                            <dxg:GridColumn FieldName="AssistsAverage"  Header="助攻" Width="*" >
                                <!--<dxg:GridColumn.EditSettings>
                                    <dxe:ProgressBarEditSettings ContentDisplayMode="Value" Minimum="0" Maximum="{Binding Path=TotalAssists}" />
                                </dxg:GridColumn.EditSettings>-->
                            </dxg:GridColumn>
                            <dxg:GridColumn FieldName="PersonalFoulsAverage"  Header="犯规" Width="*"  />
                            <dxg:GridColumn FieldName="FieldGoalsPercentageAverage"  Header="投篮命中率" Width="*" />
                            <dxg:GridColumn FieldName="StealsAverage"  Header="抢断" Width="*"  />
                            <dxg:GridColumn FieldName="BlockedAverage"  Header="盖帽" Width="*" />
                            <dxg:GridColumn FieldName="TwoPointPercentageAverage"  Header="两分命中率" Width="*" />
                            <dxg:GridColumn FieldName="ThreePointPercentageAverage"  Header="三分命中率" Width="*" />
                            <dxg:GridColumn FieldName="FreeThrowsPercentageAverage"  Header="罚球命中率" Width="*" />
                            <dxg:GridColumn FieldName="TurnoversAverage"  Header="失误" Width="*" />
                            
                            <!--#endregion-->
                            <dxg:GridControl.View>
                                <dxg:TableView AutoWidth="True"  ShowGroupPanel="False" 
                               BorderThickness="0"  
                               ShowFilterPanelMode="Never"
                               AllowColumnFiltering="False"
                               AllowSorting="True"  
                               AllowEditing="False"       
                               IsColumnMenuEnabled="True"           >
                                </dxg:TableView>
                            </dxg:GridControl.View>

                        </dxg:GridControl>

                    </DockPanel>
                </Grid>
            </TabItem>

        </TabControl>

    </Grid>
</UserControl>
