Select to view content in your preferred language

Activate Pro TOC View programmatically

484
1
09-09-2020 08:04 AM
AlexZlotin1
Emerging Contributor

Is there a way to programmatically activate a TOC View? Specifically, I would like to make the Snapping View visible (esri_mapping_SnappingView). Thanks!

0 Kudos
1 Reply
TomGeo
by
Frequent Contributor

If the id you provided would be a DockPane (ref to "activate a TOC View") then you would do the following:

DockPane pane = FrameworkApplication.DockPaneManager.Find("esri_mapping_SnappingView");
if (pane == null)
    return;

pane.Activate();

I am not aware of any dockpane for snapping. Doesn't mean it's not there...

- We are living in the 21st century.
GIS moved on and nobody needs a format consisting out of at least three files! No, nobody needs shapefiles, not even for the sake of an exchange format. Folks, use GeoPackage to exchange data with other GIS!
0 Kudos