mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Reuse polyline PathFigureCollection
This commit is contained in:
parent
6b386827ff
commit
71f17420b5
6 changed files with 15 additions and 17 deletions
|
|
@ -54,7 +54,9 @@ namespace MapControl
|
|||
|
||||
protected override void UpdateData()
|
||||
{
|
||||
((PathGeometry)Data).Figures = GetPolylineFigures(Locations, true);
|
||||
var figures = ((PathGeometry)Data).Figures;
|
||||
figures.Clear();
|
||||
AddPolylinePoints(figures, Locations, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue