I'm kinda new to WPF and I am having a few issues with the performance of my application. The solution should be a VirtualizingWrapPanel. I made some research and there are not many tutorials or documentations that explain how to use it correctly. I downloaded an example project and built a DLL (https://github.com/sbaeumlisberger/VirtualizingWrapPanel). I then referenced this in my program and tried this code:
<vwp:VirtualizingItemsControl VirtualizingPanel.CacheLengthUnit="Item" VirtualizingPanel.ScrollUnit="Pixel" VirtualizingPanel.VirtualizationMode="Recycling">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<vwp:VirtualizingWrapPanel Orientation="Vertical" SpacingMode="None" StretchItems="False"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<local:my_custom_control/>
<local:my_custom_control/>
<local:my_custom_control/>
<local:my_custom_control/>
<local:my_custom_control/>
<local:my_custom_control/>
...
</vwp:VirtualizingItemsControl>
However, this code does not work and has exactly the same performance as a normal wrap panel. Does anyone know what the problem is? Im sorry if this sounds stupid or something like this, im kinda new to this stuff.