CarouselPagePerformancePage.xaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="ControlCatalog.Pages.CarouselPagePerformancePage">
  4. <Grid ColumnDefinitions="*,240">
  5. <Border Grid.Column="0" Margin="12"
  6. BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
  7. BorderThickness="1"
  8. CornerRadius="6"
  9. ClipToBounds="True">
  10. <CarouselPage x:Name="DemoCarousel" />
  11. </Border>
  12. <Border Grid.Column="1"
  13. BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
  14. BorderThickness="1,0,0,0" Padding="12">
  15. <ScrollViewer>
  16. <StackPanel Spacing="8">
  17. <TextBlock Text="Actions" FontWeight="SemiBold" />
  18. <Button Content="Add 5 Pages" HorizontalAlignment="Stretch" Click="OnAdd5" />
  19. <Button Content="Add 20 Pages" HorizontalAlignment="Stretch" Click="OnAdd20" />
  20. <Button Content="Remove Last 5" HorizontalAlignment="Stretch" Click="OnRemove5" />
  21. <Button Content="Clear All" HorizontalAlignment="Stretch" Click="OnClearAll" />
  22. <Separator />
  23. <Button Content="Force GC" HorizontalAlignment="Stretch" Click="OnForceGC" />
  24. <Button Content="Refresh Stats" HorizontalAlignment="Stretch" Click="OnRefresh" />
  25. <Separator />
  26. <TextBlock Text="Statistics" FontWeight="SemiBold" />
  27. <TextBlock x:Name="PageCountText" Text="Page count: 0" FontSize="12" />
  28. <TextBlock x:Name="LiveCountText" Text="Live instances: 0" FontSize="12" />
  29. <TextBlock x:Name="HeapText" Text="Heap: 0 KB" FontSize="12" />
  30. <TextBlock x:Name="AllocText" Text="Total allocated: 0 KB" FontSize="12" />
  31. <TextBlock x:Name="LastOpTimeText" Text="Last Op: " FontSize="12" />
  32. </StackPanel>
  33. </ScrollViewer>
  34. </Border>
  35. </Grid>
  36. </UserControl>