Updated MapGraticule

This commit is contained in:
ClemensFischer 2025-06-09 22:34:05 +02:00
parent 0696441a4e
commit 5a681d3580
4 changed files with 16 additions and 57 deletions

View file

@ -28,9 +28,6 @@ namespace MapControl
public static readonly DependencyProperty FontSizeProperty =
DependencyPropertyHelper.Register<MapGraticule, double>(nameof(FontSize), 12d);
public static readonly DependencyProperty StrokeThicknessProperty =
DependencyPropertyHelper.Register<MapGraticule, double>(nameof(StrokeThickness), 0.5);
private readonly Path path = new Path { Data = new PathGeometry() };
public Brush Foreground
@ -51,12 +48,6 @@ namespace MapControl
set => SetValue(FontSizeProperty, value);
}
public double StrokeThickness
{
get => (double)GetValue(StrokeThicknessProperty);
set => SetValue(StrokeThicknessProperty, value);
}
protected override void SetParentMap(MapBase map)
{
if (map != null && Foreground == null)