<actions:ToggleVisibilityAction TargetName="MainPage.MyBaseMaps" /> I am not sure the parameter I set for the TargetName is correct.
<actions:ToggleVisibilityAction TargetName="MyBaseMaps" />
Problem solved. Closed.
this.MyMap.Visibility = System.Windows.Visibility.Collapsed;
this.MyMap.Layers["StreetMap"].Visible = false;
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.