mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
32 lines
763 B
C#
32 lines
763 B
C#
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
|
// © 2019 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
|
|
{
|
|
/// <summary>
|
|
/// Pushpin at a geographic location specified by the MapPanel.Location attached property.
|
|
/// </summary>
|
|
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); }
|
|
}
|
|
}
|
|
}
|