I'm trying to strip out the ArcGIS Pro UI via DAML.
This bit works:
<deleteButton refID="esri_core_saveProjectButton" />
<deleteButton refID="esri_core_saveProjectAsButton" />
but if I use something like this
<updateModule refID="esri_mapping" caption="Mapping" description="Mapping">
<deleteDockPane refID="esri_mapping_popupsDockPane" />
It doesn't - these items are still visible / usable in the ArcGIS Pro UI. I can nuke it via var someElements = from seg in database.Root.Descendants(nsp + "module") select seg; and removing the elements but I'm sure this will cause null exceptions down the track. Why isn't the DAML being honoured? I'm missing something.
The DAML is used to customize the appearance of the UI, especially the ribbon. Even though you can syntactically use the "deleteDockPane" element in the DAML, the dockpanes are available in code and can be accessed using buttons, etc. You can't completely prevent the ability to display the Symbology dockpane, for example. You can only try and remove all the buttons in the UI that access it.
Thanks for the reply. I'm stripping out the buttons as much as I can but even if I use the deletedockPane it is still visible on the startup of ArcGIS Pro.
Try saving your project after closing the dockpane, that way when you reopen the project the dockpane will not show up.
Dockpanes cannot be deleted, since they are available in the code within Pro. The buttons, context menu items that display the dockpanes can be removed.
Note: In the above screenshot, you can delete the Symbology button on the Pro ribbon. But you will still be able to access the Symbology dockpane when you click the symbol in the TOC for a layer.
Thanks for that - much appreciated. I'm having a bit of fun with context menus as well - I can remove the RMB context menus for database connections but not toolboxes - even though I have delete menu tag. Any tricks here?