You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
3.5 KiB
Plaintext

<UserControl x:Class="SlnMesnac.WPF.Templates.Pagination"
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:SlnMesnac.WPF.Templates"
xmlns:hc="https://handyorg.github.io/handycontrol"
mc:Ignorable="d"
Background="Transparent" Height="75" Width="1080">
<StackPanel Orientation="Horizontal" Margin="10" VerticalAlignment="Center" >
<TextBlock FontSize="20" Text="共计:" VerticalAlignment="Center" Foreground="White" Background="Transparent" />
<TextBlock FontSize="20" Text="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=Total}" Margin="20,0,0,0"
Foreground="White" Background="Transparent" VerticalAlignment="Center"/>
<TextBlock FontSize="20" Text="条数据" Margin="20,0,0,0" Foreground="White" Background="Transparent" VerticalAlignment="Center"/>
<!--<TextBlock FontSize="20" Text="共" Margin="40,0,0,0" Foreground="White" Background="Transparent" VerticalAlignment="Center"/>
<TextBlock FontSize="20" Text="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=Page, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="10,0,0,0"
Foreground="White" Background="Transparent" VerticalAlignment="Center"/>
<TextBlock FontSize="20" Text="页" Margin="10,0,0,0" Foreground="White" Background="Transparent" VerticalAlignment="Center"/>-->
<!--<TextBlock FontSize="20" Text="第" Margin="30,0,0,0" Foreground="White" Background="Transparent" VerticalAlignment="Center"/>
<TextBox FontSize="20" Text="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=Current, Mode=OneWay}"
Margin="5,0,0,0" Width="60" Foreground="White" Background="Transparent" VerticalAlignment="Center"/>
<TextBlock FontSize="20" Text="页" Margin="5,0,0,0" Foreground="White" Background="Transparent" VerticalAlignment="Center"/>
<Button FontSize="20" Command="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=GoCommand}"
Content="跳转" Margin="20,0,0,0" Width="100" Foreground="White" Background="Transparent" VerticalAlignment="Center"/>-->
<Button FontSize="20" Command="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=PreCommand}"
Content="上一页" Margin="40,0,0,0" Width="100" Foreground="White" Background="Transparent" VerticalAlignment="Center"/>
<Button FontSize="20" Command="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=NextCommand}"
Content="下一页" Margin="20,0,0,0" Width="100" Foreground="White" Background="Transparent" VerticalAlignment="Center"/>
<ComboBox Width="100" Foreground="Green" Background="Transparent" Margin="30,0,0,0"
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=PageSizes}"
SelectedItem="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=PageSize, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" SelectedIndex="0"
/>
</StackPanel>
</UserControl>