2012-11-23 16:16:09 +01:00
|
|
|
|
// XAML Map Control - http://xamlmapcontrol.codeplex.com/
|
2016-02-23 20:07:30 +01:00
|
|
|
|
// © 2016 Clemens Fischer
|
2012-11-23 16:16:09 +01:00
|
|
|
|
// Licensed under the Microsoft Public License (Ms-PL)
|
|
|
|
|
|
|
2015-08-09 20:04:44 +02:00
|
|
|
|
#if NETFX_CORE
|
2012-12-06 23:28:12 +01:00
|
|
|
|
using Windows.UI.Xaml.Controls;
|
|
|
|
|
|
#else
|
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
2012-11-23 16:16:09 +01:00
|
|
|
|
namespace MapControl
|
|
|
|
|
|
{
|
2012-12-06 23:28:12 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Container class for an item in a MapItemsControl.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class MapItem : ListBoxItem
|
2012-11-23 16:16:09 +01:00
|
|
|
|
{
|
|
|
|
|
|
public MapItem()
|
|
|
|
|
|
{
|
|
|
|
|
|
DefaultStyleKey = typeof(MapItem);
|
|
|
|
|
|
MapPanel.AddParentMapHandlers(this);
|
|
|
|
|
|
}
|
2016-08-08 20:36:02 +02:00
|
|
|
|
|
|
|
|
|
|
public Location Location
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return (Location)GetValue(MapPanel.LocationProperty); }
|
|
|
|
|
|
set { SetValue(MapPanel.LocationProperty, value); }
|
|
|
|
|
|
}
|
2012-11-23 16:16:09 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|