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

New Post: Is it possible to specify that all views in region should be removed when when deactivated on region level in xaml?

$
0
0
Is it possible to specify that all views in region should be removed when when deactivated on region level in xaml?

For example, I need to specify that such behavior should be applied to any view that will be displayed in region. I can implement IRegionMemberLifetime for each view (or view model) and specify
public bool KeepAlive
{
    get
    {
        return false;
    }
}
Is it possible to do same in xaml, i.e. something like

<ContentControl prism:RegionManager.RegionName="{x:Static desktopView:RegionNames.Shell}" prism:RegionManager.KeepAlive ="false"/>

Viewing all articles
Browse latest Browse all 1878

Trending Articles



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