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

370
2
08-15-2018 11:42 AM
Highlighted
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)
Reply
0 Kudos
2 Replies
Highlighted
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 

Reply
0 Kudos
Highlighted
New Contributor II

Thank you! I will take a look at this.

Reply
0 Kudos