mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
29 lines
860 B
C#
29 lines
860 B
C#
// XAML Map Control - http://xamlmapcontrol.codeplex.com/
|
|
// © 2015 Clemens Fischer
|
|
// Licensed under the Microsoft Public License (Ms-PL)
|
|
|
|
using System.Windows;
|
|
using System.Windows.Media;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace MapControl
|
|
{
|
|
public partial class MapPath : Shape
|
|
{
|
|
public static readonly DependencyProperty DataProperty = DependencyProperty.Register(
|
|
"Data", typeof(Geometry), typeof(MapPath), new FrameworkPropertyMetadata(
|
|
null, FrameworkPropertyMetadataOptions.AffectsRender, (o, e) => ((MapPath)o).UpdateData()));
|
|
|
|
public Geometry Data
|
|
{
|
|
get { return (Geometry)GetValue(DataProperty); }
|
|
set { SetValue(DataProperty, value); }
|
|
}
|
|
|
|
protected override Geometry DefiningGeometry
|
|
{
|
|
get { return Data; }
|
|
}
|
|
}
|
|
}
|