2017-06-25 23:05:48 +02:00
|
|
|
|
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
2019-03-27 18:39:59 +01:00
|
|
|
|
// © 2019 Clemens Fischer
|
2012-11-23 16:16:09 +01:00
|
|
|
|
// Licensed under the Microsoft Public License (Ms-PL)
|
|
|
|
|
|
|
2017-09-05 20:57:17 +02:00
|
|
|
|
#if WINDOWS_UWP
|
2012-12-06 23:28:12 +01:00
|
|
|
|
using Windows.UI.Xaml.Controls;
|
2017-09-05 20:57:17 +02:00
|
|
|
|
#else
|
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
|
#endif
|
2012-12-06 23:28:12 +01:00
|
|
|
|
|
2012-11-23 16:16:09 +01:00
|
|
|
|
namespace MapControl
|
|
|
|
|
|
{
|
2012-12-06 23:28:12 +01:00
|
|
|
|
/// <summary>
|
2017-09-05 20:57:17 +02:00
|
|
|
|
/// Pushpin at a geographic location specified by the MapPanel.Location attached property.
|
2012-12-06 23:28:12 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class Pushpin : ContentControl
|
2012-11-23 16:16:09 +01:00
|
|
|
|
{
|
|
|
|
|
|
public Pushpin()
|
|
|
|
|
|
{
|
|
|
|
|
|
DefaultStyleKey = typeof(Pushpin);
|
2016-08-08 20:36:02 +02:00
|
|
|
|
|
2017-09-05 20:57:17 +02:00
|
|
|
|
MapPanel.InitMapElement(this);
|
2016-08-08 20:36:02 +02:00
|
|
|
|
}
|
2018-02-09 17:43:47 +01:00
|
|
|
|
|
|
|
|
|
|
public Location Location
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return MapPanel.GetLocation(this); }
|
|
|
|
|
|
set { MapPanel.SetLocation(this, value); }
|
|
|
|
|
|
}
|
2012-11-23 16:16:09 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|