<UserControl x:Class="Khd.Core.Wpf.CSS.PageControl"
             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:local="clr-namespace:Khd.Core.Wpf.CSS"
             mc:Ignorable="d" 
             d:DesignHeight="35" d:DesignWidth="700">
    <Viewbox>
        <Grid x:Name="PageControlGrid">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="2*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
                <Button x:Name="PreviousPageButton" Content="上一页" Style="{StaticResource ButtonPrimary}" VerticalAlignment="Center" Click="PreviousPageButton_Click"/>
                <TextBlock Text="第" Foreground="White" VerticalAlignment="Center" Margin="5,0"/>
                <TextBlock x:Name="CurrentPageControl" Text="{Binding CurrentPage,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Foreground="White" VerticalAlignment="Center" Margin="5,0"/>
                <TextBlock Text="页 / 共" Foreground="White" VerticalAlignment="Center" Margin="5,0"/>
                <TextBlock x:Name="TotalPageControl" Text="{Binding TotalPage,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Foreground="White" VerticalAlignment="Center" Margin="5,0"/>
                <TextBlock Text="页" Foreground="White" VerticalAlignment="Center" Margin="5,0"/>
                <Button x:Name="NextPageButton" Content="下一页" Style="{StaticResource ButtonPrimary}" VerticalAlignment="Center" Margin="5,0" Click="NextPageButton_Click"/>
            </StackPanel>
        </Grid>
    </Viewbox>
</UserControl>
