void SetActiveWorkspace(WorkspaceViewModel workspace) { System.Diagnostics.Debug.Assert(this.Workspaces.Contains(workspace)); ICollectionView collectionView = CollectionViewSource.GetDefaultView(this.Workspaces); if (collectionView != null) collectionView.MoveCurrentTo(workspace); SelectedWorkspace = workspace; }
void ShowWorkspace() { var workspaceVm = new WorkspaceViewModel(AuthKey); this.SetActiveView(workspaceVm); }