_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} ...... />
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.