How to focus project tab in catalog dock

342
4
03-06-2020 12:20 AM
by Anonymous User
Not applicable

Hi Guys,

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);
0 Kudos
4 Replies
UmaHarano
Esri Regular Contributor

Hi Than

You cannot activate a specific tab on the Catalog dockpane.

Thanks

Uma

0 Kudos
by Anonymous User
Not applicable

Thank Uma Harano‌ for your reply,

Is there any future plan to support that kind of functionality?

Best Regards,

Than

0 Kudos
UmaHarano
Esri Regular Contributor

I have passed on this request to the Development team. 

Thanks!

Uma

0 Kudos
by Anonymous User
Not applicable

Thank Uma Harano‌,

0 Kudos