Using the SDK, I know how to add a property sheet to the ArcGIS Pro settings window. Is it also possible to add a property sheet to the layers properties window?
(Sorry about the duplicate, I think I posted to the wrong forum section earlier)
Hi,
There is possibility to add custom page to layer properties. I have used BackStage_PropertyPage sample from ArcGIS Pro SDK Community samples to make test. I have copied existing "updateSheet" piece in config.daml, pasted below, changed refid to "esri_mapping_featureLayerPropertySheet" and deleted "group" setting inside page info:
<updateSheet refID="esri_mapping_featureLayerPropertySheet"> <!--Use group=Application for the options to appear under the Application section in the settings--> <!--assign the viewModel class to the className attribute; assign the view class to the className attribute in the content tag--> <insertPage id="esri_sdk_PropertyPageAppSettings" caption="Sample App Settings" className="ApplicationSettingsViewModel"> <content className="ApplicationSettingsView" /> </insertPage> <!--Use group=Project for the options to appear under the Project section in the settings--> <!--assign the viewModel class to the className attribute; assign the view class to the className attribute in the content tag--> <insertPage id="esri_sdk_PropertyPageProjectSettings" caption="Sample Project Settings" className="ProjectSettingsViewModel"> <content className="ProjectSettingsView" /> </insertPage> </updateSheet>
I have got result for feature layer properties like in picture:
Nice. Do you also know where I can find a list of valid values for refId's?
BTW Here's another thread which also explains how to get the selected layer for the properties dialog.
I use this wiki page to find DAML ids - https://github.com/Esri/arcgis-pro-sdk/wiki/ArcGIS-Pro-DAML-ID-Reference. Examining the source xml files also helps - e.g. C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing\Editing.daml
I make search in *.daml files in ArcGIS Pro application bin folder
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.