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.
Solved! Go to Solution.
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:
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:
Thanks, that's what I was looking for.
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();
Thanks for pointing this out, I will fix this.
- Wolf
I am a real stickler for documentation. I also found other confusing articles here:
https://community.esri.com/thread/252078-confused-about-proconcepts-articles