sbaeumlisberger / VirtualizingWrapPanel

Implementation of a comprehensive VirtualisingWrapPanel for WPF
MIT License
256 stars 35 forks source link

Only first tile renders after latest update #26

Closed julesx closed 3 years ago

julesx commented 3 years ago

Describe your issue Since the latest update, when i load a large amount of items, the first tile and only the first tile renders immediately. Then there is a big delay, and the rest of the tiles MAY load. sometimes they just don't. Applying a filter (eg triggering some property change notifications) to the source collection resolves the issue.

Version Info Package Version 1.5.5

sbaeumlisberger commented 3 years ago

sorry to hear that. I will have a look at it and get back to you.

Could you provide some code snippet to show how you use the control?

julesx commented 3 years ago

https://gist.github.com/julesx/4794b289cb9726d759d1406a941832fd

<usercontrols1:ListBoxPgItems AllowDrop="True" Background="Transparent" PreviewMouseDoubleClickEvent="ListBoxItem_PreviewMouseDoubleClick" Loaded="ListBoxPgItems_Loaded" ItemsSource="{Binding PgItems}" >

so basically a ListBox that uses VirtualizingWrapPanel as its ItemsPanelTemplate i also specify templates for each item type as well as ItemContainerStyle .. but nothing out of the ordinary for WPF i think

sbaeumlisberger commented 3 years ago

just fixed: https://www.nuget.org/packages/VirtualizingWrapPanel/1.5.6

julesx commented 3 years ago

thanks. fixed.