Use of TabControl within TabItem in ArcGIS Pro

486
1
04-15-2021 07:13 AM
MarioLandry
New Contributor II

I'm about to convert an application that used to run under ArcMap, and the form of that application does contain TabControl within TabItem.  I'd like to do the same type of interface under ArcGIS Pro, but when I look at the samples, the only one that seems to do the job is the one about the custom catalog (https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/CustomCatalog)

But, in that case it's trying to emulate the Catalog pane and from what I can understand, the styling for the TabControl is not supported in ArcGIS Pro.

So the question is:  Can I still use regular WPF TabControl within ARCGIS Pro or will I be heading into major problem?  If the problem is only a question of styling, it's not a major problem in my case.

0 Kudos
1 Reply
GKmieliauskas
Esri Regular Contributor

Hi,

You can use all WPF controls without problems. In other hand it would be nice when third party tools looks like native UI. I would recommend for your case to use Esri style control like in picture below:

GintautasKmieliauskas_0-1618899824958.png

They use ListBox with their own style  Esri_ListBoxPanelIndicator. More info here:

https://github.com/Esri/arcgis-pro-sdk/wiki/proguide-style-guide#list-box 

You can use sample you found (CustomCatalog).

P.s You can open and windows forms from ArcGIS Pro. It is not good solution, looks different, can.t work with different themes, but it fast solution to migrate from ArcMap to ArcGIS Pro. We use that way for very complicated dialogs for faster product delivery.