Start ArcGIS Pro Dialog

1798
5
Jump to solution
04-20-2017 08:52 AM
MickeyO_Neil
New Contributor III

Hello,

I am trying to start a ArcGIS Pro Dialog in my Add In, but I can't find them in the SDK. Can someone tell me how to open the two following Dialogs:

1. The User has to select a Feature-Class, so I need a "OpenFileDialog" with a Feature-Class Filter. 

2. The User has to select a Symbol, so I need to open a kind of "Project/Styles"-Dialog with a specific Style selected. Then the User selects one Symbol of the Style, presses a OK/Apply Button and the selected Symbol is returned to my Add-In.

Thank you very much for your help.

0 Kudos
1 Solution

Accepted Solutions
Wolf
by Esri Regular Contributor
Esri Regular Contributor
5 Replies
Wolf
by Esri Regular Contributor
Esri Regular Contributor

For item 1):

try this class / method:  https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic8998.html

To see some sample go to Community Samples and search the repo for OpenItemDialog

for item 2) 

try this sample:

https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Authoring/CustomSymbolPicke...

MickeyO_Neil
New Contributor III

Thanks, that's what I was looking for.

0 Kudos
AbelPerez
Occasional Contributor III

The article in Item #1 I think has a bug.addToProjectDialog to setup the dialog and then calling addToMapDialog

addToProjectDialog.Filter = ItemFilters.composite_maps_import; bool? ok = addToMapDialog.ShowDialog();
0 Kudos
Wolf
by Esri Regular Contributor
Esri Regular Contributor

Thanks for pointing this out, I will fix this.

- Wolf

0 Kudos
AbelPerez
Occasional Contributor III

I am a real stickler for documentation. I also found other confusing articles here:

https://community.esri.com/thread/252078-confused-about-proconcepts-articles 

0 Kudos