PipsPagerEventsPage.xaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="ControlCatalog.Pages.PipsPagerEventsPage">
  4. <DockPanel>
  5. <ScrollViewer DockPanel.Dock="Right" Width="220">
  6. <StackPanel Margin="12" Spacing="8">
  7. <TextBlock Text="Events" FontSize="16" FontWeight="SemiBold"
  8. Foreground="{DynamicResource SystemControlHighlightAccentBrush}" />
  9. <TextBlock TextWrapping="Wrap" FontSize="12" Opacity="0.7"
  10. Text="Monitor SelectedPageIndex changes to react to user navigation." />
  11. <Separator />
  12. <TextBlock Text="Event Log" FontSize="13" FontWeight="SemiBold" />
  13. <ItemsControl Name="EventLog">
  14. <ItemsControl.ItemTemplate>
  15. <DataTemplate>
  16. <TextBlock Text="{Binding}" FontSize="11" TextWrapping="Wrap" />
  17. </DataTemplate>
  18. </ItemsControl.ItemTemplate>
  19. </ItemsControl>
  20. </StackPanel>
  21. </ScrollViewer>
  22. <Border DockPanel.Dock="Right" Width="1"
  23. Background="{DynamicResource SystemControlForegroundBaseMediumLowBrush}" />
  24. <StackPanel Spacing="16" Margin="24">
  25. <TextBlock Text="Tap a pip and watch the event log" FontSize="14" Opacity="0.6" />
  26. <PipsPager Name="EventPager"
  27. NumberOfPages="8"
  28. MaxVisiblePips="8" />
  29. <TextBlock Name="StatusText" FontSize="13" Opacity="0.7"
  30. Text="Selected: 0" />
  31. </StackPanel>
  32. </DockPanel>
  33. </UserControl>