mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Re-enabled WPF dependency property value inheritance for MapPanel.ParentMap.
This commit is contained in:
parent
afac46dcf1
commit
4fbc5bc00c
|
|
@ -108,6 +108,8 @@ namespace MapControl
|
||||||
|
|
||||||
public MapBase()
|
public MapBase()
|
||||||
{
|
{
|
||||||
|
SetValue(MapPanel.ParentMapProperty, this);
|
||||||
|
|
||||||
Background = LightBackground;
|
Background = LightBackground;
|
||||||
TileLayers = new TileLayerCollection();
|
TileLayers = new TileLayerCollection();
|
||||||
Initialize();
|
Initialize();
|
||||||
|
|
|
||||||
|
|
@ -76,10 +76,13 @@
|
||||||
<Compile Include="MapGraticule.cs" />
|
<Compile Include="MapGraticule.cs" />
|
||||||
<Compile Include="MapGraticule.Silverlight.WinRT.cs" />
|
<Compile Include="MapGraticule.Silverlight.WinRT.cs" />
|
||||||
<Compile Include="MapItem.cs" />
|
<Compile Include="MapItem.cs" />
|
||||||
|
<Compile Include="MapItem.Silverlight.WinRT.cs" />
|
||||||
<Compile Include="MapItemsControl.cs" />
|
<Compile Include="MapItemsControl.cs" />
|
||||||
|
<Compile Include="MapItemsControl.Silverlight.WinRT.cs" />
|
||||||
<Compile Include="MapOverlay.cs" />
|
<Compile Include="MapOverlay.cs" />
|
||||||
<Compile Include="MapOverlay.Silverlight.WinRT.cs" />
|
<Compile Include="MapOverlay.Silverlight.WinRT.cs" />
|
||||||
<Compile Include="MapPanel.cs" />
|
<Compile Include="MapPanel.cs" />
|
||||||
|
<Compile Include="MapPanel.Silverlight.WinRT.cs" />
|
||||||
<Compile Include="MapPolygon.cs" />
|
<Compile Include="MapPolygon.cs" />
|
||||||
<Compile Include="MapPolyline.cs" />
|
<Compile Include="MapPolyline.cs" />
|
||||||
<Compile Include="MapPolyline.Silverlight.cs" />
|
<Compile Include="MapPolyline.Silverlight.cs" />
|
||||||
|
|
@ -88,6 +91,7 @@
|
||||||
<Compile Include="MercatorTransform.cs" />
|
<Compile Include="MercatorTransform.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="Pushpin.cs" />
|
<Compile Include="Pushpin.cs" />
|
||||||
|
<Compile Include="Pushpin.Silverlight.WinRT.cs" />
|
||||||
<Compile Include="Tile.cs" />
|
<Compile Include="Tile.cs" />
|
||||||
<Compile Include="Tile.Silverlight.WinRT.cs" />
|
<Compile Include="Tile.Silverlight.WinRT.cs" />
|
||||||
<Compile Include="TileContainer.cs" />
|
<Compile Include="TileContainer.cs" />
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@
|
||||||
<Compile Include="MapItemsControl.cs" />
|
<Compile Include="MapItemsControl.cs" />
|
||||||
<Compile Include="MapItemsControl.WPF.cs" />
|
<Compile Include="MapItemsControl.WPF.cs" />
|
||||||
<Compile Include="MapPanel.cs" />
|
<Compile Include="MapPanel.cs" />
|
||||||
|
<Compile Include="MapPanel.WPF.cs" />
|
||||||
<Compile Include="MapPolyline.cs" />
|
<Compile Include="MapPolyline.cs" />
|
||||||
<Compile Include="MapPolyline.WPF.cs" />
|
<Compile Include="MapPolyline.WPF.cs" />
|
||||||
<Compile Include="MapTransform.cs" />
|
<Compile Include="MapTransform.cs" />
|
||||||
|
|
|
||||||
15
MapControl/MapItem.Silverlight.WinRT.cs
Normal file
15
MapControl/MapItem.Silverlight.WinRT.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
// XAML Map Control - http://xamlmapcontrol.codeplex.com/
|
||||||
|
// Copyright © 2012 Clemens Fischer
|
||||||
|
// Licensed under the Microsoft Public License (Ms-PL)
|
||||||
|
|
||||||
|
namespace MapControl
|
||||||
|
{
|
||||||
|
public partial class MapItem
|
||||||
|
{
|
||||||
|
public MapItem()
|
||||||
|
{
|
||||||
|
DefaultStyleKey = typeof(MapItem);
|
||||||
|
MapPanel.AddParentMapHandlers(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -22,12 +22,6 @@ namespace MapControl
|
||||||
public static readonly DependencyProperty LocationPathProperty = DependencyProperty.Register(
|
public static readonly DependencyProperty LocationPathProperty = DependencyProperty.Register(
|
||||||
"LocationPath", typeof(string), typeof(MapItem), new PropertyMetadata(null, LocationPathPropertyChanged));
|
"LocationPath", typeof(string), typeof(MapItem), new PropertyMetadata(null, LocationPathPropertyChanged));
|
||||||
|
|
||||||
public MapItem()
|
|
||||||
{
|
|
||||||
MapPanel.AddParentMapHandlers(this);
|
|
||||||
DefaultStyleKey = typeof(MapItem);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the property path that is used to bind the MapPanel.Location attached property.
|
/// Gets or sets the property path that is used to bind the MapPanel.Location attached property.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
21
MapControl/MapItemsControl.Silverlight.WinRT.cs
Normal file
21
MapControl/MapItemsControl.Silverlight.WinRT.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
// XAML Map Control - http://xamlmapcontrol.codeplex.com/
|
||||||
|
// Copyright © 2012 Clemens Fischer
|
||||||
|
// Licensed under the Microsoft Public License (Ms-PL)
|
||||||
|
|
||||||
|
#if WINRT
|
||||||
|
using Windows.UI.Xaml;
|
||||||
|
#else
|
||||||
|
using System.Windows;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace MapControl
|
||||||
|
{
|
||||||
|
public partial class MapItemsControl
|
||||||
|
{
|
||||||
|
public MapItemsControl()
|
||||||
|
{
|
||||||
|
DefaultStyleKey = typeof(MapItemsControl);
|
||||||
|
MapPanel.AddParentMapHandlers(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -19,7 +19,7 @@ namespace MapControl
|
||||||
typeof(MapItemsControl), new FrameworkPropertyMetadata(typeof(MapItemsControl)));
|
typeof(MapItemsControl), new FrameworkPropertyMetadata(typeof(MapItemsControl)));
|
||||||
}
|
}
|
||||||
|
|
||||||
partial void Initialize()
|
public MapItemsControl()
|
||||||
{
|
{
|
||||||
Items.CurrentChanging += OnCurrentItemChanging;
|
Items.CurrentChanging += OnCurrentItemChanging;
|
||||||
Items.CurrentChanged += OnCurrentItemChanged;
|
Items.CurrentChanged += OnCurrentItemChanged;
|
||||||
|
|
|
||||||
|
|
@ -18,20 +18,6 @@ namespace MapControl
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class MapItemsControl : ListBox
|
public partial class MapItemsControl : ListBox
|
||||||
{
|
{
|
||||||
public MapItemsControl()
|
|
||||||
{
|
|
||||||
MapPanel.AddParentMapHandlers(this);
|
|
||||||
DefaultStyleKey = typeof(MapItemsControl);
|
|
||||||
Initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
partial void Initialize();
|
|
||||||
|
|
||||||
protected override DependencyObject GetContainerForItemOverride()
|
|
||||||
{
|
|
||||||
return new MapItem();
|
|
||||||
}
|
|
||||||
|
|
||||||
public UIElement ContainerFromItem(object item)
|
public UIElement ContainerFromItem(object item)
|
||||||
{
|
{
|
||||||
return item != null ? ItemContainerGenerator.ContainerFromItem(item) as UIElement : null;
|
return item != null ? ItemContainerGenerator.ContainerFromItem(item) as UIElement : null;
|
||||||
|
|
@ -41,5 +27,10 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
return container != null ? ItemContainerGenerator.ItemFromContainer(container) : null;
|
return container != null ? ItemContainerGenerator.ItemFromContainer(container) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override DependencyObject GetContainerForItemOverride()
|
||||||
|
{
|
||||||
|
return new MapItem();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -81,8 +81,9 @@ namespace MapControl
|
||||||
protected readonly Path Path = new Path();
|
protected readonly Path Path = new Path();
|
||||||
protected readonly PathGeometry Geometry = new PathGeometry();
|
protected readonly PathGeometry Geometry = new PathGeometry();
|
||||||
|
|
||||||
partial void Initialize()
|
public MapOverlay()
|
||||||
{
|
{
|
||||||
|
IsHitTestVisible = false;
|
||||||
Path.Stroke = Stroke;
|
Path.Stroke = Stroke;
|
||||||
Path.StrokeThickness = StrokeThickness;
|
Path.StrokeThickness = StrokeThickness;
|
||||||
Path.StrokeDashArray = StrokeDashArray;
|
Path.StrokeDashArray = StrokeDashArray;
|
||||||
|
|
|
||||||
|
|
@ -69,10 +69,8 @@ namespace MapControl
|
||||||
typeof(MapOverlay), new FrameworkPropertyMetadata(false));
|
typeof(MapOverlay), new FrameworkPropertyMetadata(false));
|
||||||
}
|
}
|
||||||
|
|
||||||
partial void Initialize()
|
public MapOverlay()
|
||||||
{
|
{
|
||||||
MapPanel.AddParentMapHandlers(this);
|
|
||||||
|
|
||||||
pen = new Pen
|
pen = new Pen
|
||||||
{
|
{
|
||||||
Brush = Stroke,
|
Brush = Stroke,
|
||||||
|
|
|
||||||
|
|
@ -17,14 +17,6 @@ namespace MapControl
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class MapOverlay
|
public partial class MapOverlay
|
||||||
{
|
{
|
||||||
public MapOverlay()
|
|
||||||
{
|
|
||||||
IsHitTestVisible = false;
|
|
||||||
Initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
partial void Initialize();
|
|
||||||
|
|
||||||
public FontFamily FontFamily
|
public FontFamily FontFamily
|
||||||
{
|
{
|
||||||
get { return (FontFamily)GetValue(FontFamilyProperty); }
|
get { return (FontFamily)GetValue(FontFamilyProperty); }
|
||||||
|
|
|
||||||
69
MapControl/MapPanel.Silverlight.WinRT.cs
Normal file
69
MapControl/MapPanel.Silverlight.WinRT.cs
Normal file
|
|
@ -0,0 +1,69 @@
|
||||||
|
// XAML Map Control - http://xamlmapcontrol.codeplex.com/
|
||||||
|
// Copyright © 2012 Clemens Fischer
|
||||||
|
// Licensed under the Microsoft Public License (Ms-PL)
|
||||||
|
|
||||||
|
#if WINRT
|
||||||
|
using Windows.UI.Xaml;
|
||||||
|
using Windows.UI.Xaml.Media;
|
||||||
|
#else
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Media;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace MapControl
|
||||||
|
{
|
||||||
|
public partial class MapPanel
|
||||||
|
{
|
||||||
|
public static readonly DependencyProperty ParentMapProperty = DependencyProperty.RegisterAttached(
|
||||||
|
"ParentMap", typeof(MapBase), typeof(MapPanel), new PropertyMetadata(null, ParentMapPropertyChanged));
|
||||||
|
|
||||||
|
public MapPanel()
|
||||||
|
{
|
||||||
|
if (!(this is MapBase))
|
||||||
|
{
|
||||||
|
AddParentMapHandlers(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Helper method to work around missing property value inheritance in Silverlight and WinRT.
|
||||||
|
/// Adds Loaded and Unloaded handlers to the specified FrameworkElement, which set and clear
|
||||||
|
/// the value of the MapPanel.ParentMap attached property.
|
||||||
|
/// </summary>
|
||||||
|
public static void AddParentMapHandlers(FrameworkElement element)
|
||||||
|
{
|
||||||
|
element.Loaded += (o, e) => GetParentMap(element);
|
||||||
|
element.Unloaded += (o, e) => element.ClearValue(ParentMapProperty);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static MapBase GetParentMap(UIElement element)
|
||||||
|
{
|
||||||
|
var parentMap = (MapBase)element.GetValue(ParentMapProperty);
|
||||||
|
|
||||||
|
if (parentMap == null && (parentMap = FindParentMap(element)) != null)
|
||||||
|
{
|
||||||
|
element.SetValue(ParentMapProperty, parentMap);
|
||||||
|
}
|
||||||
|
|
||||||
|
return parentMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static MapBase FindParentMap(UIElement element)
|
||||||
|
{
|
||||||
|
MapBase parentMap = null;
|
||||||
|
var parentElement = VisualTreeHelper.GetParent(element) as UIElement;
|
||||||
|
|
||||||
|
if (parentElement != null)
|
||||||
|
{
|
||||||
|
parentMap = parentElement as MapBase;
|
||||||
|
|
||||||
|
if (parentMap == null)
|
||||||
|
{
|
||||||
|
parentMap = GetParentMap(parentElement);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return parentMap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
20
MapControl/MapPanel.WPF.cs
Normal file
20
MapControl/MapPanel.WPF.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
// XAML Map Control - http://xamlmapcontrol.codeplex.com/
|
||||||
|
// Copyright © 2012 Clemens Fischer
|
||||||
|
// Licensed under the Microsoft Public License (Ms-PL)
|
||||||
|
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
namespace MapControl
|
||||||
|
{
|
||||||
|
public partial class MapPanel
|
||||||
|
{
|
||||||
|
public static readonly DependencyProperty ParentMapProperty = DependencyProperty.RegisterAttached(
|
||||||
|
"ParentMap", typeof(MapBase), typeof(MapPanel),
|
||||||
|
new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.Inherits, ParentMapPropertyChanged));
|
||||||
|
|
||||||
|
public static MapBase GetParentMap(UIElement element)
|
||||||
|
{
|
||||||
|
return (MapBase)element.GetValue(ParentMapProperty);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -26,30 +26,11 @@ namespace MapControl
|
||||||
/// The Location is transformed into a viewport position by the MapBase.LocationToViewportPoint
|
/// The Location is transformed into a viewport position by the MapBase.LocationToViewportPoint
|
||||||
/// method and then applied to the RenderTransform as an appropriate TranslateTransform.
|
/// method and then applied to the RenderTransform as an appropriate TranslateTransform.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MapPanel : Panel, IMapElement
|
public partial class MapPanel : Panel, IMapElement
|
||||||
{
|
{
|
||||||
public static readonly DependencyProperty ParentMapProperty = DependencyProperty.RegisterAttached(
|
|
||||||
"ParentMap", typeof(MapBase), typeof(MapPanel), new PropertyMetadata(null, ParentMapPropertyChanged));
|
|
||||||
|
|
||||||
public static readonly DependencyProperty LocationProperty = DependencyProperty.RegisterAttached(
|
public static readonly DependencyProperty LocationProperty = DependencyProperty.RegisterAttached(
|
||||||
"Location", typeof(Location), typeof(MapPanel), new PropertyMetadata(null, LocationPropertyChanged));
|
"Location", typeof(Location), typeof(MapPanel), new PropertyMetadata(null, LocationPropertyChanged));
|
||||||
|
|
||||||
public MapPanel()
|
|
||||||
{
|
|
||||||
AddParentMapHandlers(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void AddParentMapHandlers(FrameworkElement element)
|
|
||||||
{
|
|
||||||
element.Loaded += (o, e) => element.SetValue(ParentMapProperty, FindParentMap(element));
|
|
||||||
element.Unloaded += (o, e) => element.ClearValue(ParentMapProperty);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static MapBase GetParentMap(UIElement element)
|
|
||||||
{
|
|
||||||
return (MapBase)element.GetValue(ParentMapProperty);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Location GetLocation(UIElement element)
|
public static Location GetLocation(UIElement element)
|
||||||
{
|
{
|
||||||
return (Location)element.GetValue(LocationProperty);
|
return (Location)element.GetValue(LocationProperty);
|
||||||
|
|
@ -83,8 +64,8 @@ namespace MapControl
|
||||||
SetViewportPosition(element, parentMap, location);
|
SetViewportPosition(element, parentMap, location);
|
||||||
}
|
}
|
||||||
|
|
||||||
var frameworkElement = element as FrameworkElement;
|
|
||||||
var rect = new Rect(0d, 0d, element.DesiredSize.Width, element.DesiredSize.Height);
|
var rect = new Rect(0d, 0d, element.DesiredSize.Width, element.DesiredSize.Height);
|
||||||
|
var frameworkElement = element as FrameworkElement;
|
||||||
|
|
||||||
if (frameworkElement != null)
|
if (frameworkElement != null)
|
||||||
{
|
{
|
||||||
|
|
@ -171,11 +152,6 @@ namespace MapControl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static MapBase FindParentMap(DependencyObject obj)
|
|
||||||
{
|
|
||||||
return (obj == null || obj is MapBase) ? (MapBase)obj : FindParentMap(VisualTreeHelper.GetParent(obj));
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void ParentMapPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
|
private static void ParentMapPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
|
||||||
{
|
{
|
||||||
var element = obj as IMapElement;
|
var element = obj as IMapElement;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
// Copyright © 2012 Clemens Fischer
|
// Copyright © 2012 Clemens Fischer
|
||||||
// Licensed under the Microsoft Public License (Ms-PL)
|
// Licensed under the Microsoft Public License (Ms-PL)
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Shapes;
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
|
|
@ -10,16 +9,17 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
public partial class MapPolyline : Path
|
public partial class MapPolyline : Path
|
||||||
{
|
{
|
||||||
partial void Initialize()
|
public MapPolyline()
|
||||||
{
|
{
|
||||||
Data = Geometry;
|
Data = Geometry;
|
||||||
|
MapPanel.AddParentMapHandlers(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override Size MeasureOverride(Size constraint)
|
protected override Size MeasureOverride(Size constraint)
|
||||||
{
|
{
|
||||||
return new Size(
|
// MeasureOverride in Silverlight occasionally tries to create
|
||||||
Math.Max(Geometry.Bounds.Width, Geometry.Bounds.Right),
|
// negative width or height from a transformed geometry in Data.
|
||||||
Math.Max(Geometry.Bounds.Height, Geometry.Bounds.Bottom));
|
return new Size(Geometry.Bounds.Width, Geometry.Bounds.Height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,10 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
public partial class MapPolyline : Path
|
public partial class MapPolyline : Path
|
||||||
{
|
{
|
||||||
partial void Initialize()
|
public MapPolyline()
|
||||||
{
|
{
|
||||||
Data = Geometry;
|
Data = Geometry;
|
||||||
|
MapPanel.AddParentMapHandlers(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,14 +21,6 @@ namespace MapControl
|
||||||
|
|
||||||
protected PathGeometry Geometry = new PathGeometry();
|
protected PathGeometry Geometry = new PathGeometry();
|
||||||
|
|
||||||
public MapPolyline()
|
|
||||||
{
|
|
||||||
MapPanel.AddParentMapHandlers(this);
|
|
||||||
Initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
partial void Initialize();
|
|
||||||
|
|
||||||
public LocationCollection Locations
|
public LocationCollection Locations
|
||||||
{
|
{
|
||||||
get { return (LocationCollection)GetValue(LocationsProperty); }
|
get { return (LocationCollection)GetValue(LocationsProperty); }
|
||||||
|
|
|
||||||
15
MapControl/Pushpin.Silverlight.WinRT.cs
Normal file
15
MapControl/Pushpin.Silverlight.WinRT.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
// XAML Map Control - http://xamlmapcontrol.codeplex.com/
|
||||||
|
// Copyright © 2012 Clemens Fischer
|
||||||
|
// Licensed under the Microsoft Public License (Ms-PL)
|
||||||
|
|
||||||
|
namespace MapControl
|
||||||
|
{
|
||||||
|
public partial class Pushpin
|
||||||
|
{
|
||||||
|
public Pushpin()
|
||||||
|
{
|
||||||
|
DefaultStyleKey = typeof(Pushpin);
|
||||||
|
MapPanel.AddParentMapHandlers(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -22,12 +22,6 @@ namespace MapControl
|
||||||
public static readonly DependencyProperty LocationPathProperty = DependencyProperty.Register(
|
public static readonly DependencyProperty LocationPathProperty = DependencyProperty.Register(
|
||||||
"LocationPath", typeof(string), typeof(Pushpin), new PropertyMetadata(null, LocationPathPropertyChanged));
|
"LocationPath", typeof(string), typeof(Pushpin), new PropertyMetadata(null, LocationPathPropertyChanged));
|
||||||
|
|
||||||
public Pushpin()
|
|
||||||
{
|
|
||||||
MapPanel.AddParentMapHandlers(this);
|
|
||||||
DefaultStyleKey = typeof(Pushpin);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the property path that is used to bind the MapPanel.Location attached property.
|
/// Gets or sets the property path that is used to bind the MapPanel.Location attached property.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -132,9 +132,15 @@
|
||||||
<Compile Include="..\MapItem.cs">
|
<Compile Include="..\MapItem.cs">
|
||||||
<Link>MapItem.cs</Link>
|
<Link>MapItem.cs</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="..\MapItem.Silverlight.WinRT.cs">
|
||||||
|
<Link>MapItem.Silverlight.WinRT.cs</Link>
|
||||||
|
</Compile>
|
||||||
<Compile Include="..\MapItemsControl.cs">
|
<Compile Include="..\MapItemsControl.cs">
|
||||||
<Link>MapItemsControl.cs</Link>
|
<Link>MapItemsControl.cs</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="..\MapItemsControl.Silverlight.WinRT.cs">
|
||||||
|
<Link>MapItemsControl.Silverlight.WinRT.cs</Link>
|
||||||
|
</Compile>
|
||||||
<Compile Include="..\MapOverlay.cs">
|
<Compile Include="..\MapOverlay.cs">
|
||||||
<Link>MapOverlay.cs</Link>
|
<Link>MapOverlay.cs</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|
@ -144,6 +150,9 @@
|
||||||
<Compile Include="..\MapPanel.cs">
|
<Compile Include="..\MapPanel.cs">
|
||||||
<Link>MapPanel.cs</Link>
|
<Link>MapPanel.cs</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="..\MapPanel.Silverlight.WinRT.cs">
|
||||||
|
<Link>MapPanel.Silverlight.WinRT.cs</Link>
|
||||||
|
</Compile>
|
||||||
<Compile Include="..\MapPolygon.cs">
|
<Compile Include="..\MapPolygon.cs">
|
||||||
<Link>MapPolygon.cs</Link>
|
<Link>MapPolygon.cs</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|
@ -165,6 +174,9 @@
|
||||||
<Compile Include="..\Pushpin.cs">
|
<Compile Include="..\Pushpin.cs">
|
||||||
<Link>Pushpin.cs</Link>
|
<Link>Pushpin.cs</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="..\Pushpin.Silverlight.WinRT.cs">
|
||||||
|
<Link>Pushpin.Silverlight.WinRT.cs</Link>
|
||||||
|
</Compile>
|
||||||
<Compile Include="..\Tile.cs">
|
<Compile Include="..\Tile.cs">
|
||||||
<Link>Tile.cs</Link>
|
<Link>Tile.cs</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue