Click here to Skip to main content
15,884,629 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a ViewModel that I am implementing the IRegionMemberLifeTime Interface.

C#
public class ReportsViewModel : ViewModelBase, INavigationAware, IRegionMemberLifetime

    {
        public bool KeepAlive
        {
            get { return false; }
        }


To navigate from one view to the other i am calling:
XML
public void Execute(object parameter)
        {
            IRegionManager regionManager = ServiceLocator.Current.GetInstance<IRegionManager>();

            // Show View
            var ModuleView= new Uri("ReportsView", UriKind.Relative);
            regionManager.RequestNavigate("MainRegion", ModuleView);
        }



I have set a breakpoint in the ReportsViewModel but the KeepAlive variable is not getting called.

I am new to Prism and have gone through the documentation. I am not sure what am missing?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900