PipsPagerGettingStartedPage.xaml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="ControlCatalog.Pages.PipsPagerGettingStartedPage">
  4. <DockPanel>
  5. <ScrollViewer DockPanel.Dock="Right" Width="220">
  6. <StackPanel Margin="12" Spacing="8">
  7. <TextBlock Text="Getting Started" FontSize="16" FontWeight="SemiBold"
  8. Foreground="{DynamicResource SystemControlHighlightAccentBrush}" />
  9. <TextBlock TextWrapping="Wrap" FontSize="12" Opacity="0.7"
  10. Text="PipsPager lets users navigate a paginated collection using configurable dot indicators with optional navigation buttons." />
  11. <Separator />
  12. <TextBlock Text="Features" FontSize="13" FontWeight="SemiBold" />
  13. <TextBlock FontSize="12" TextWrapping="Wrap" Text="Configurable maximum visible pips" />
  14. <TextBlock FontSize="12" TextWrapping="Wrap" Text="Automatic scrolling for large collections" />
  15. <TextBlock FontSize="12" TextWrapping="Wrap" Text="Horizontal and Vertical orientation" />
  16. <TextBlock FontSize="12" TextWrapping="Wrap" Text="Previous/Next navigation buttons" />
  17. <TextBlock FontSize="12" TextWrapping="Wrap" Text="Customizable pips and buttons" />
  18. </StackPanel>
  19. </ScrollViewer>
  20. <Border DockPanel.Dock="Right" Width="1"
  21. Background="{DynamicResource SystemControlForegroundBaseMediumLowBrush}" />
  22. <StackPanel Spacing="24" Margin="24">
  23. <StackPanel Spacing="8">
  24. <TextBlock Text="Default" FontWeight="SemiBold" FontSize="14" />
  25. <PipsPager NumberOfPages="5" />
  26. </StackPanel>
  27. <StackPanel Spacing="8">
  28. <TextBlock Text="Without Navigation Buttons" FontWeight="SemiBold" FontSize="14" />
  29. <PipsPager NumberOfPages="10"
  30. IsPreviousButtonVisible="False"
  31. IsNextButtonVisible="False"
  32. MaxVisiblePips="5" />
  33. </StackPanel>
  34. <StackPanel Spacing="8">
  35. <TextBlock Text="Vertical" FontWeight="SemiBold" FontSize="14" />
  36. <PipsPager NumberOfPages="5" Orientation="Vertical" />
  37. </StackPanel>
  38. </StackPanel>
  39. </DockPanel>
  40. </UserControl>