<UserControl x:Class="VIZ.TVP.WMCUP.Module.FGTeamStandingView"
             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.WMCUP.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="650">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="60"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <WrapPanel Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Width="650" >
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="70"/>
                    <ColumnDefinition Width="285"/>
                    <ColumnDefinition Width="0"/>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition Width="140"/>
                    <!--<ColumnDefinition Width="120"/>-->
                </Grid.ColumnDefinitions>

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

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

    

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

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

                        <Button Grid.Column="0" Content="加载数据"  FontSize="14" Width="90"  Height="30" Command="{Binding BtnCmd}" />

                        <dx:SimpleButton  Grid.Row="0" 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>


            </Grid>
        </WrapPanel>


        <DockPanel  Grid.Row="1">

            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="200"/>
                    <RowDefinition Height="200"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
       

             <DockPanel Grid.Row="0" Grid.Column="0" Margin="20">

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

                <dxg:GridColumn FieldName="teamName"  Header="A组" Width="80"  />
                <dxg:GridColumn FieldName="score" Header="积分" Width="80"/>
                  

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

                    <dxg:TableView IsColumnMenuEnabled="True"
                                                       IsColumnChooserVisible="{Binding Path=IsColumnChooserVisible,Mode=TwoWay}"
                                                       AllowEditing="True" 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">


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

             <DockPanel Grid.Row="0" Grid.Column="1" Margin="20">

                <dxg:GridControl x:Name="grid1" ShowBorder="False" ItemsSource="{Binding Path= TeamRanksModelB,Mode=TwoWay}" >

                        <dxg:GridColumn FieldName="teamName"  Header="B组" Width="80"  />
                        <dxg:GridColumn FieldName="score" Header="积分" Width="80"/>


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

                        <dxg:TableView IsColumnMenuEnabled="True"
                                                       IsColumnChooserVisible="{Binding Path=IsColumnChooserVisible,Mode=TwoWay}"
                                                       AllowEditing="True" 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">

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

             <DockPanel Grid.Row="0" Grid.Column="2" Margin="20">

                    <dxg:GridControl x:Name="grid2" ShowBorder="False" ItemsSource="{Binding Path= TeamRanksModelC,Mode=TwoWay}" >

                        <dxg:GridColumn FieldName="teamName"  Header="C组" Width="80"  />
                        <dxg:GridColumn FieldName="score" Header="积分" Width="80"/>



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

                            <dxg:TableView IsColumnMenuEnabled="True"
                                                       IsColumnChooserVisible="{Binding Path=IsColumnChooserVisible,Mode=TwoWay}"
                                                       AllowEditing="True" 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">


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

             <DockPanel Grid.Row="0" Grid.Column="3" Margin="20">
 
                    <dxg:GridControl x:Name="grid3" ShowBorder="False" ItemsSource="{Binding Path= TeamRanksModelD,Mode=TwoWay}" >

                        <dxg:GridColumn FieldName="teamName"  Header="D组" Width="80"  />
                        <dxg:GridColumn FieldName="score" Header="积分" Width="80"/>



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

                            <dxg:TableView IsColumnMenuEnabled="True"
                                                       IsColumnChooserVisible="{Binding Path=IsColumnChooserVisible,Mode=TwoWay}"
                                                       AllowEditing="True" 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">


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

             <DockPanel Grid.Row="1" Grid.Column="0" Margin="20">

                    <dxg:GridControl x:Name="grid5" ShowBorder="False" ItemsSource="{Binding Path=TeamRanksModelE,Mode=TwoWay}" >

                        <dxg:GridColumn FieldName="teamName"  Header="E组" Width="80"  />
                        <dxg:GridColumn FieldName="score" Header="积分" Width="80"/>


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

                            <dxg:TableView IsColumnMenuEnabled="True"
                                                       IsColumnChooserVisible="{Binding Path=IsColumnChooserVisible,Mode=TwoWay}"
                                                       AllowEditing="True" 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">


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

             <DockPanel Grid.Row="1" Grid.Column="1" Margin="20">

                    <dxg:GridControl x:Name="grid6" ShowBorder="False" ItemsSource="{Binding Path= TeamRanksModelF,Mode=TwoWay}" >

                        <dxg:GridColumn FieldName="teamName"  Header="F组" Width="80"  />
                        <dxg:GridColumn FieldName="score" Header="积分" Width="80"/>


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

                            <dxg:TableView IsColumnMenuEnabled="True"
                                                       IsColumnChooserVisible="{Binding Path=IsColumnChooserVisible,Mode=TwoWay}"
                                                       AllowEditing="True" 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">


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

             <DockPanel Grid.Row="1" Grid.Column="2" Margin="20">

                    <dxg:GridControl x:Name="grid7" ShowBorder="False" ItemsSource="{Binding Path= TeamRanksModelG,Mode=TwoWay}" >

                        <dxg:GridColumn FieldName="teamName"  Header="G组" Width="80"  />
                        <dxg:GridColumn FieldName="score" Header="积分" Width="80"/>



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

                            <dxg:TableView IsColumnMenuEnabled="True"
                                                       IsColumnChooserVisible="{Binding Path=IsColumnChooserVisible,Mode=TwoWay}"
                                                       AllowEditing="True" 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">


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

             <DockPanel Grid.Row="1" Grid.Column="3" Margin="20">

                    <dxg:GridControl x:Name="grid8" ShowBorder="False" ItemsSource="{Binding Path= TeamRanksModelH,Mode=TwoWay}" >

                        <dxg:GridColumn FieldName="teamName"  Header="H组" Width="80"  />
                        <dxg:GridColumn FieldName="score" Header="积分" Width="80"/>



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

                            <dxg:TableView IsColumnMenuEnabled="True"
                                                       IsColumnChooserVisible="{Binding Path=IsColumnChooserVisible,Mode=TwoWay}"
                                                       AllowEditing="True" 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">


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