<UserControl
    x:Class="Ursa.Demo.Pages.PaginationDemo"
    xmlns="https://github.com/avaloniaui"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:u="https://irihi.tech/ursa"
    xmlns:viewModels="clr-namespace:Ursa.Demo.ViewModels"
    d:DesignHeight="450"
    d:DesignWidth="800"
    mc:Ignorable="d">
    <Design.DataContext>
        <viewModels:PaginationDemoViewModel />
    </Design.DataContext>
    <StackPanel>
        <TextBlock Text="{Binding #page.CurrentPage}" />
        <ToggleSwitch Name="pageSizeSelector" Content="Show Page Size Selector" />
        <u:Pagination
            Name="page"
            PageSizeOptions="10, 20, 50, 100"
            ShowPageSizeSelector="{Binding #pageSizeSelector.IsChecked}"
            TotalCount="600" />
    </StackPanel>
</UserControl>
