Use ArcGIS Pro SDK to create a button asking for user to input data path

839
2
08-15-2018 11:42 AM
JoshuaO_Neil
New Contributor II

Is there a way to use ArcGIS Pro SDK to create a button for ArcGIS Pro that when clicked in Pro, it will ask the user to input the path of a feature class, and then use that data path as an input to programmatically add the feature class to the map?

Tags (1)
0 Kudos
2 Replies
Wolf
by Esri Regular Contributor
Esri Regular Contributor

You can take a look at the 'btnGetLayer_Click' Method in this community sample source file:  arcgis-pro-sdk-community-samples/AddLayerDlg.xaml.cs at b76a6625dc3fa2e4287c1b39ab4b95e3a8f2b04b · E... 

In essence you want to use the "OpenItemDialog" class to browse for any geo data:  ArcGIS Pro 2.2 API Reference Guide 

0 Kudos
JoshuaO_Neil
New Contributor II

Thank you! I will take a look at this.

0 Kudos