_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} ...... />
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.