private void Button_Click_1(object sender, RoutedEventArgs e) { WorkspaceManager workspaceManager = WorkspaceManager.GetWorkspaceManager(dockLayoutManager) as WorkspaceManager; workspaceManager.LoadWorkspace("workspace1", "layout.xml"); workspaceManager.ApplyWorkspace("workspace1"); }
public WorkspaceModel LoadWorkspace(string filePath) { return(WorkspaceManager.LoadWorkspace(filePath)); }
public WorkspaceViewModel(string path) { this.Workspace = WorkspaceManager.LoadWorkspace(path); Path = path; }