/// <summary> /// Handles the the event of the Navigator instance property changed. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void NavigatorPropertyChanged(object sender, PropertyChangedEventArgs e) { if (e.PropertyName == GetPropertyName(() => Navigator.CurrentView)) { SelectedWorkspace = Navigator.CurrentView; } }
/// <summary> /// /// </summary> /// <param name="workspaceView"></param> void INavigator.AddView(WorkspaceViewModelBase workspaceView) { if (null == workspaceView) throw new ArgumentNullException("workspaceView"); _views.Add(workspaceView.RegisteredName, workspaceView); }
/// <summary> /// Sets the current view to home view. /// </summary> private void NavigateToHome() { _currentView = _homeView; OnPropertyChanged("CurrentView"); }
/// <summary> /// /// </summary> /// <param name="homeView"></param> void INavigator.AddHomeView(WorkspaceViewModelBase homeView) { _homeView = homeView; }
/// <summary> /// /// </summary> /// <param name="viewKey"></param> void INavigator.NavigateToView(string viewKey) { if (_views.ContainsKey(viewKey)) { _currentView =_views[viewKey]; OnPropertyChanged("CurrentView"); } }