mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-02-07 08:14:19 +01:00
22 lines
587 B
C#
22 lines
587 B
C#
using Avalonia;
|
|
using Avalonia.Controls.Shapes;
|
|
using Avalonia.Media;
|
|
|
|
namespace MapControl
|
|
{
|
|
public partial class MapPath : Shape
|
|
{
|
|
public static readonly StyledProperty<Geometry> DataProperty =
|
|
DependencyPropertyHelper.AddOwner<MapPath, Geometry>(Path.DataProperty,
|
|
(path, oldValue, newValue) => path.UpdateData());
|
|
|
|
public Geometry Data
|
|
{
|
|
get => GetValue(DataProperty);
|
|
set => SetValue(DataProperty, value);
|
|
}
|
|
|
|
protected override Geometry CreateDefiningGeometry() => Data;
|
|
}
|
|
}
|