Avalonia InvalidateGeometry on new Path Figures

This commit is contained in:
ClemensFischer 2024-05-26 00:12:32 +02:00
parent ddc11bcc8a
commit e49ca0b79e
5 changed files with 19 additions and 8 deletions

View file

@ -57,10 +57,7 @@ namespace MapControl
protected override void UpdateData()
{
((PathGeometry)Data).Figures = GetPathFigures(Locations, true);
#if AVALONIA
InvalidateGeometry();
#endif
SetPathFigures(GetPathFigures(Locations, true));
}
}
}

View file

@ -57,10 +57,7 @@ namespace MapControl
protected override void UpdateData()
{
((PathGeometry)Data).Figures = GetPathFigures(Locations, false);
#if AVALONIA
InvalidateGeometry();
#endif
SetPathFigures(GetPathFigures(Locations, true));
}
}
}