I am trying to focus on project tab in catalog pane programmatically from addin.
And I want to expand the folder connection tree.
The following code work only when user focus on project tab or last visited location of catalog pane is project tab.
If user focus on history tab of catalog pane, it can't refocus back.
How shall I do that behavior?
I am using pro 2.4
ArcGIS.Desktop.Core.IProjectWindow projectWindow = Project.GetCatalogPane(true);
//var folderContainer = Project.Current.ProjectItemContainers.First(c => c.Path == "FolderConnection");
var folderContainer = Project.Current.GetProjectItemContainer("FolderConnection");
var firstFolderItem = Project.Current.GetItems<FolderConnectionProjectItem>().First(); //Folder project item
await projectWindow.SelectItemAsync((Item)firstFolderItem, true, false, folderContainer);