mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
31 lines
755 B
C#
31 lines
755 B
C#
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
|
// © 2017 Clemens Fischer
|
|
// Licensed under the Microsoft Public License (Ms-PL)
|
|
|
|
#if NETFX_CORE
|
|
using Windows.UI.Xaml.Controls;
|
|
#else
|
|
using System.Windows.Controls;
|
|
#endif
|
|
|
|
namespace MapControl
|
|
{
|
|
/// <summary>
|
|
/// Container class for an item in a MapItemsControl.
|
|
/// </summary>
|
|
public class MapItem : ListBoxItem
|
|
{
|
|
public MapItem()
|
|
{
|
|
DefaultStyleKey = typeof(MapItem);
|
|
MapPanel.AddParentMapHandlers(this);
|
|
}
|
|
|
|
public Location Location
|
|
{
|
|
get { return (Location)GetValue(MapPanel.LocationProperty); }
|
|
set { SetValue(MapPanel.LocationProperty, value); }
|
|
}
|
|
}
|
|
}
|