Activate Pro TOC View programmatically

248
1
09-09-2020 08:04 AM
AlexZlotin1
New Contributor II

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
Occasional Contributor III

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...

-------------------------
“GIS is a form of digital mapping technology. Kind of like Google Earth, but better.” ~ Arnold Schwarzenegger
0 Kudos