<UserControl x:Class="HandyControlDemo.UserControl.PaginationDemoCtl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Background="{DynamicResource RegionBrush}"
             DataContext="{Binding PaginationDemo,Source={StaticResource Locator}}"
             xmlns:controls="clr-namespace:HandyControl.Controls;assembly=HandyControl"
             xmlns:i="clr-namespace:HandyControl.Interactivity;assembly=HandyControl">
    <Grid Margin="32">
        <controls:Pagination Width="500" VerticalAlignment="Center" MaxPageCount="10" PageIndex="{Binding PageIndex}">
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="PageUpdated">
                    <i:EventToCommand Command="{Binding PageUpdatedCmd}" PassEventArgsToCommand="True" />
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </controls:Pagination>
    </Grid>
</UserControl>
