// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control // © 2020 Clemens Fischer // Licensed under the Microsoft Public License (Ms-PL) #if WINDOWS_UWP using Windows.UI.Xaml.Controls; #else using System.Windows.Controls; #endif namespace MapControl { /// /// Pushpin at a geographic location specified by the MapPanel.Location attached property. /// public class Pushpin : ContentControl { public Pushpin() { DefaultStyleKey = typeof(Pushpin); MapPanel.InitMapElement(this); } public Location Location { get { return MapPanel.GetLocation(this); } set { MapPanel.SetLocation(this, value); } } } }