feat: add quick jump.
This commit is contained in:
@@ -13,11 +13,16 @@
|
||||
<viewModels:PaginationDemoViewModel />
|
||||
</Design.DataContext>
|
||||
<StackPanel>
|
||||
<TextBlock Text="{Binding #page.CurrentPage}" />
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="Current Page: "></TextBlock>
|
||||
<TextBlock Text="{Binding #page.CurrentPage}" />
|
||||
</StackPanel>
|
||||
<ToggleSwitch Name="pageSizeSelector" Content="Show Page Size Selector" />
|
||||
<ToggleSwitch Name="quickJumperSelector" Content="Show Quick Jumper"></ToggleSwitch>
|
||||
<u:Pagination
|
||||
Name="page"
|
||||
PageSizeOptions="10, 20, 50, 100"
|
||||
ShowQuickJump="{Binding #quickJumperSelector.IsChecked}"
|
||||
ShowPageSizeSelector="{Binding #pageSizeSelector.IsChecked}"
|
||||
TotalCount="600" />
|
||||
</StackPanel>
|
||||
|
||||
Reference in New Issue
Block a user