<UserControl x:Class="NEIntelligentControl2.Views.Basic.PaginationBar"
             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:NEIntelligentControl2.Views.Basic"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800">
    <UserControl.Resources>
        <!--下一页-->
        <ControlTemplate x:Key="btlast">
            <Viewbox Width="20" Height="20">
                <Canvas Width="1024" Height="1024">
                    <Path x:Name="p1" Data="M736 512v0.3L288 960V64z" Fill="#FF497CAD"/>
                </Canvas>
            </Viewbox>
        </ControlTemplate>
        <!--最后一页-->
        <ControlTemplate x:Key="btlatest">
            <Viewbox Width="20" Height="20">
                <Canvas Width="1024" Height="1024">
                    <Path x:Name="p1" Data="M704 64h224v896H704zM544.3 512v0.3L96 960V64z" Fill="#FF497CAD"/>
                </Canvas>
            </Viewbox>
        </ControlTemplate>
        <!--上一页-->
        <ControlTemplate x:Key="btprevious">
            <Viewbox Width="20" Height="20">
                <Canvas Width="1024" Height="1024">
                    <Path x:Name="p1" Data="M288 512v0.3L736 960V64z" Fill="#FF497CAD"/>
                </Canvas>
            </Viewbox>
        </ControlTemplate>
        <!--第一页-->
        <ControlTemplate x:Key="first">
            <Viewbox Width="20" Height="20">
                <Canvas Width="1024" Height="1024">
                    <Path x:Name="p1" Data="M479.7 512v0.3L928 960V64zM96 64h224v896H96z" Fill="#FF497CAD"/>
                </Canvas>
            </Viewbox>
        </ControlTemplate>
    </UserControl.Resources>
    <StackPanel Orientation="Horizontal">
        <Button ToolTip="第一页">
            <Button.Content>
                <ContentControl Template="{StaticResource first}"/>
            </Button.Content>
        </Button>
        <Button ToolTip="上一页">
            <Button.Content>
                <ContentControl Template="{StaticResource btprevious}"/>
            </Button.Content>
        </Button>
        <TextBox MinWidth="30"/>
        <TextBlock MinWidth="30"/>
        <TextBlock Text="/" VerticalAlignment="Center"/>
        <Button ToolTip="下一页">
            <Button.Content>
                <ContentControl Template="{StaticResource btlast}"/>
            </Button.Content>
        </Button>
        <Button ToolTip="最后一页">
            <Button.Content>
                <ContentControl Template="{StaticResource btlatest}"/>
            </Button.Content>
        </Button>
    </StackPanel>
</UserControl>
