Is there a way to programmatically activate a TOC View? Specifically, I would like to make the Snapping View visible (esri_mapping_SnappingView). Thanks!
If the id you provided would be a DockPane (ref to "activate a TOC View") then you would do the following:
DockPane pane <SPAN class="operator token">=</SPAN> FrameworkApplication<SPAN class="punctuation token">.</SPAN>DockPaneManager<SPAN class="punctuation token">.</SPAN><SPAN class="token function">Find</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"esri_mapping_SnappingView"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN>pane <SPAN class="operator token">==</SPAN> <SPAN class="keyword token">null</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">return</SPAN><SPAN class="punctuation token">;</SPAN> pane<SPAN class="punctuation token">.</SPAN><SPAN class="token function">Activate</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
I am not aware of any dockpane for snapping. Doesn't mean it's not there...
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.