tags:

views:

14

answers:

0

I have a fairly heavyweight application running inside a container application. Users will likely want to create up to 20 instances of this application to run side-by-side within the container. After the 15th instance, the WPF elements no longer draw. ActiveX components still work as expected and I can interact with the rest of the application, but all of the WPF pieces, toolbars, treeviews, datagrids, etc. are missing.

I've run MSFT's Visual Profiler and each instance of the application creates 373 elements. I already lazy-load the tree view - so on initial creation, it only has top-level elements. The number of elements increases greatly as you start expanding the list.

1) Has anyone run into this type of problem before?
2) Is there a hard limit to how many elements you can create that I may be reaching?
3) What techniques can I use to limit the number of elements necessary to render my application?