Пример #1
0
        void SetCurrentWorkspace(WorkspaceVm workspace)
        {
            Debug.Assert(Workspaces.Contains(workspace));

            var collectionView = CollectionViewSource.GetDefaultView(Workspaces);

            if (collectionView != null)
            {
                collectionView.MoveCurrentTo(workspace);
            }
        }
Пример #2
0
 public void AddNewWorkspace(WorkspaceVm workspace)
 {
     _workspaces.Add(workspace);
     SetCurrentWorkspace(workspace);
 }