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
<ContentControl prism:RegionManager.RegionName="{x:Static desktopView:RegionNames.Shell}" prism:RegionManager.KeepAlive ="false"/>
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"/>