private void NavigateToViewMethod(string destination) { try { if (Destination != destination) { Destination = destination; switch (destination) { case "UserDisplay": CurrentViewModel = new UserDisplayViewModel(); break; default: break; } } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public UserViewModel() { Destination = "UserDisplay"; _currentViewModel = new UserDisplayViewModel(); }