2025-08-19 19:43:02 +02:00
|
|
|
|
using Avalonia;
|
|
|
|
|
|
using Avalonia.Controls.Shapes;
|
|
|
|
|
|
using Avalonia.Media;
|
2024-08-30 16:37:40 +02:00
|
|
|
|
|
2024-05-25 18:58:51 +02:00
|
|
|
|
namespace MapControl
|
|
|
|
|
|
{
|
|
|
|
|
|
public partial class MapPath : Shape
|
|
|
|
|
|
{
|
2026-02-02 12:10:09 +01:00
|
|
|
|
public static readonly StyledProperty<Geometry> DataProperty =
|
|
|
|
|
|
DependencyPropertyHelper.AddOwner<MapPath, Geometry>(Path.DataProperty,
|
|
|
|
|
|
(path, oldValue, newValue) => path.UpdateData());
|
2024-05-25 18:58:51 +02:00
|
|
|
|
|
|
|
|
|
|
public Geometry Data
|
|
|
|
|
|
{
|
|
|
|
|
|
get => GetValue(DataProperty);
|
|
|
|
|
|
set => SetValue(DataProperty, value);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override Geometry CreateDefiningGeometry() => Data;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|