void SetSessionUser(User user) { Console.WriteLine("VM_MainWindow: SetSession User."); if (user != null) { Console.WriteLine("VM_MainWindow: rootFrame"); RootPage = new RootFrame(); } else { Console.WriteLine("VM_MainWindow: authentication"); RootPage = new Authentication(); } }
/** * Display an Authentication view on Detail page * */ private void GoToUserManagement() { RootPage = new RootFrame(); Info = "MainWindow set rootFrame for user management"; Console.WriteLine(Info); }