fix: use virtualization for endpoints list

This commit is contained in:
estrogen elf
2025-06-17 22:20:27 -05:00
parent b35099e5ab
commit b56c18a552

View File

@@ -12,6 +12,11 @@
<TextBox Watermark="Search" Margin="0 0 0 4" Text="{Binding Search}" Grid.Row="1" Grid.Column="0"/> <TextBox Watermark="Search" Margin="0 0 0 4" Text="{Binding Search}" Grid.Row="1" Grid.Column="0"/>
<ScrollViewer Grid.Row="2" Grid.Column="0" Offset="{Binding Offset, Mode=TwoWay}"> <ScrollViewer Grid.Row="2" Grid.Column="0" Offset="{Binding Offset, Mode=TwoWay}">
<ItemsControl ItemsSource="{Binding EndpointSearchDetails}"> <ItemsControl ItemsSource="{Binding EndpointSearchDetails}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate> <ItemsControl.ItemTemplate>
<DataTemplate> <DataTemplate>
<ContentControl Content="{Binding}"/> <ContentControl Content="{Binding}"/>