I m having very poor performance results when using ListBox + WrapPanel to display information in my WPF inside ListBox ItemsPanelTemplate.
If I remove the WrapPanel from the ListBox the information takes about 5 sec to display completely with the WrapPanel it takes about 1.10 min.
Any tips on how to improve performance on this?
The configuration is: My DataTemplate is in App.xaml and uses 1 Border, Grid, 20 TextBlocks wrapped inside 6 different VirtualizingStackPanels.
The ListBox:
<ListBox Name="myListBox"
Margin="4"
BorderBrush="DarkSlateGray" BorderThickness="1"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
ItemsSource="{Binding propList}"
ItemTemplate="{StaticResource myDataTemplate}" >
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Thank You.