A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

45 lines
2.0 KiB

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="ControlCatalog.Pages.CarouselPagePerformancePage">
<Grid ColumnDefinitions="*,240">
<Border Grid.Column="0" Margin="12"
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
BorderThickness="1"
CornerRadius="6"
ClipToBounds="True">
<CarouselPage x:Name="DemoCarousel" />
</Border>
<Border Grid.Column="1"
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
BorderThickness="1,0,0,0" Padding="12">
<ScrollViewer>
<StackPanel Spacing="8">
<TextBlock Text="Actions" FontWeight="SemiBold" />
<Button Content="Add 5 Pages" HorizontalAlignment="Stretch" Click="OnAdd5" />
<Button Content="Add 20 Pages" HorizontalAlignment="Stretch" Click="OnAdd20" />
<Button Content="Remove Last 5" HorizontalAlignment="Stretch" Click="OnRemove5" />
<Button Content="Clear All" HorizontalAlignment="Stretch" Click="OnClearAll" />
<Separator />
<Button Content="Force GC" HorizontalAlignment="Stretch" Click="OnForceGC" />
<Button Content="Refresh Stats" HorizontalAlignment="Stretch" Click="OnRefresh" />
<Separator />
<TextBlock Text="Statistics" FontWeight="SemiBold" />
<TextBlock x:Name="PageCountText" Text="Page count: 0" FontSize="12" />
<TextBlock x:Name="LiveCountText" Text="Live instances: 0" FontSize="12" />
<TextBlock x:Name="HeapText" Text="Heap: 0 KB" FontSize="12" />
<TextBlock x:Name="AllocText" Text="Total allocated: 0 KB" FontSize="12" />
<TextBlock x:Name="LastOpTimeText" Text="Last Op: " FontSize="12" />
</StackPanel>
</ScrollViewer>
</Border>
</Grid>
</UserControl>