XAML-Map-Control/MapControl/Shared/Pushpin.cs

32 lines
763 B
C#
Raw Normal View History

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