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<SPAN class="punctuation token">.</SPAN>Desktop<SPAN class="punctuation token">.</SPAN>Core<SPAN class="punctuation token">.</SPAN>IProjectWindow projectWindow <SPAN class="operator token">=</SPAN> Project<SPAN class="punctuation token">.</SPAN><SPAN class="token function">GetCatalogPane</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">true</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="comment token">//var folderContainer = Project.Current.ProjectItemContainers.First(c => c.Path == "FolderConnection");</SPAN>
<SPAN class="keyword token">var</SPAN> folderContainer <SPAN class="operator token">=</SPAN> Project<SPAN class="punctuation token">.</SPAN>Current<SPAN class="punctuation token">.</SPAN><SPAN class="token function">GetProjectItemContainer</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"FolderConnection"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">var</SPAN> firstFolderItem <SPAN class="operator token">=</SPAN> Project<SPAN class="punctuation token">.</SPAN>Current<SPAN class="punctuation token">.</SPAN>GetItems<SPAN class="operator token"><</SPAN>FolderConnectionProjectItem<SPAN class="operator token">></SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">First</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="comment token">//Folder project item</SPAN>
<SPAN class="keyword token">await</SPAN> projectWindow<SPAN class="punctuation token">.</SPAN><SPAN class="token function">SelectItemAsync</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">(</SPAN>Item<SPAN class="punctuation token">)</SPAN>firstFolderItem<SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">true</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">false</SPAN><SPAN class="punctuation token">,</SPAN> folderContainer<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>