Memory Consumption for a Region creation

Topics: Prism v2 - WPF 4, Prism v4 - WPF 4
Oct 8, 2012 at 1:16 PM

Hi All,

I have one shell window.

This shell window have the four tabs views.

I have created a region for each tab view , means 4 tabs views has the 4 regions.

I can switch a from one tab to another tab.

My question is how much region will take a memory in order to display tab view. Is it depends on a view?

Another thing is i could have been managed these four tabs into one region, not necessary to create other 3 regions.

If i created so, these all 4 regions will take a more memory or its the same as 1 region???

Any help highly appreciated.






Oct 9, 2012 at 8:29 PM


As far as I know, each region consume memory for the region object itself, its attached region behaviors and the views that the region contains (active and deactivated ones.) Based on my understanding, most of the memory usage from a region will come from the views it contains. Hence, much of how memory a region might consume will depend mostly of the amount of views it contains and the size of each view.

Based on this, four regions will consume more memory than one. On the other hand, the "correct" amount of regions for you application will depend mostly of the requirements of your scenario and your personal preferences. You should take into account if the benefits of structuring your UI with several regions instead of one are greater that the memory consumption of such regions (which I believe is minimal.)


Damian Cherubini

Oct 10, 2012 at 6:15 AM

Thank you so much Damian!!