原点图案改换为五角星

This commit is contained in:
zxd 2018-07-18 01:07:37 +08:00
parent d6554486ab
commit b3ae2ed818

View File

@ -347,7 +347,7 @@ namespace Plane.FormationCreator.Views
} }
} }
Ellipse original = null; Microsoft.Expression.Shapes.RegularPolygon original = null;
private void FlightTaskManager_SetOriginal(object sender, FlightTaskAddedOriginalEventArgs e) private void FlightTaskManager_SetOriginal(object sender, FlightTaskAddedOriginalEventArgs e)
{ {
@ -359,15 +359,16 @@ namespace Plane.FormationCreator.Views
else else
location = new Location(e.Lat, e.Lng); location = new Location(e.Lat, e.Lng);
original = new Microsoft.Expression.Shapes.RegularPolygon
original = new Ellipse
{ {
Tag = ORIGINALPOINT_TAG, Tag = ORIGINALPOINT_TAG,
Fill = new SolidColorBrush(Color.FromRgb(0, 0, 0)), Fill = new SolidColorBrush(Color.FromRgb(237, 155, 3)),
StrokeThickness = 3, StrokeThickness = 1,
Stroke = new SolidColorBrush(Color.FromRgb(255, 255, 255)), Stroke = new SolidColorBrush(Color.FromRgb(255, 255, 255)),
Width = 18, Width = 25,
Height = 18, Height = 25,
InnerRadius = 0.5,
PointCount = 5,
}; };
map.Children.Add(original); map.Children.Add(original);