Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: WPF & Prism 4.1 Garbage Collection / Memory Issues

$
0
0
Hi Damian,

Try this link

I read that link as well a couple days ago, but believe that it does not apply since the views being removed do not have nested regions. I also tried RegionBehaviors:ClearChildViewsRegionBehavior just to be sure and get the same result.

It's like this:
  • MainRegion (ContentControl)
    • MainContentRegion (TabControl loaded in MainRegion)
      • UserControl1 (tab item 1 - datacontext is viewmodel1)
        • ContentControl (viewmodel2 - property in viewmodel1, displayed via datatemplate)
          • ContentControl (viewmodel3 - property in viewmodel2, displayed via datatemplate)
When I try to remove UserControl1 from the MainContentRegion it stays in memory, there are no subregions below MainContentRegion.

Let me know if you are able to grab the file from the link above.

Thanks,
Chris

Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>