_Parent = (Mainpage)System.Windows.Application.Current.RootVisual;
#region Map /// <summary> /// Gets or sets the map that the switch control is buddied to. /// </summary> /// <value>The map.</value> public ESRI.ArcGIS.Client.Map Map { get { return GetValue(MapProperty) as Map; } set { SetValue(MapProperty, value); } } /// /// <summary> /// Identifies the <see cref="Map"/> dependency property. /// </summary> public static readonly DependencyProperty MapProperty = DependencyProperty.Register("Map", typeof(Map), typeof(Switch),null); #endregion
<Switch Map={Binding ElementName=MyMap} ...... />
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.