add-设备停机记录添加分页控件,待完善
parent
5d9dfb6ce2
commit
49740c4f51
@ -0,0 +1,33 @@
|
||||
<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="880">
|
||||
<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="20,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"/>
|
||||
<TextBox FontSize="20" Text="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=Current, Mode=OneWay}"
|
||||
Margin="20,0,0,0" Width="60" 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="20,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>
|
Loading…
Reference in New Issue