<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;
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.