I made a control by myself to "fake" a detail grid. Every row will be a single control which means i need a lot of them. I'm trying to store them in a StackPanel which is located in a ScrollViewer.
When i add a control the memory usage of my executable climbs up 10mb. When i am trying to use to draw all 110 data packages it is climbing up to 1.5GB and throws the OutOfMemory exception.
Control is very minimalistic.. no executions, just a few labels, some vector graphics, an expander and a set of 3 more controls (only multiple labels).
How can i solve this problem?