<UserControl x:Class="VIZ.TVP.FTB.Module.ShootPlayerRankView"
                      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.FTB.Module"
                      mc:Ignorable="d"
                      d:DesignHeight="800" d:DesignWidth="650">

    <UserControl.Resources>
        <ResourceDictionary>
            <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 >
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="197*"/>
        </Grid.ColumnDefinitions>
        <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.FTB.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">

            <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= ShootPlayerModel,Mode=TwoWay}">

                <dxg:GridColumn FieldName="rank"  Header="排名" Width="112"  />
                <dxg:GridColumn FieldName="playerLogo" Header="球员图片" Width="112"/>
                <dxg:GridColumn FieldName="teamLogo" Header="球队国旗" Width="112"/>
                <dxg:GridColumn FieldName="figureName"  Header="球员名称" Width="112"    />
                <dxg:GridColumn FieldName="goals"  Header="进球数" Width="180"  />
                <dxg:GridColumn FieldName="PenaltyGoal" Header="点球" Width="100" />

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


    </Grid>
</UserControl>
