public void OnSelectedIndexChanged(PipsPager sender, PipsPagerSelectedIndexChangedEventArgs args)
        {
            PreviousPageButtonIsVisibleCheckBox.IsChecked = IsButtonVisible(previousPageButton);
            NextPageButtonIsVisibleCheckBox.IsChecked     = IsButtonVisible(nextPageButton);

            PreviousPageButtonIsEnabledCheckBox.IsChecked = previousPageButton?.IsEnabled;
            NextPageButtonIsEnabledCheckBox.IsChecked     = nextPageButton?.IsEnabled;

            CurrentPageIndexTextBlock.Text = $"Current index is: {sender.SelectedPageIndex}";
        }
 private void Pager_SelectedIndexChanged(WinUI.PipsPager sender, WinUI.PipsPagerSelectedIndexChangedEventArgs args)
 {
     // Good that this doesn't create an infinite loop.
     Pager.SelectedPageIndex     = Pager.SelectedPageIndex % Pictures.Count + Pictures.Count;
     ImageRepeater.SelectedIndex = Pager.SelectedPageIndex % Pictures.Count;
 }