I am working on a geofence based C# project and I need to show the area of certain geofences on a MapControl. I tried this by simple adding an ellipse to the map but, it didn't work like it should because the ellipse doesn't scale when the user scrolls to zoom in/out. How can I solve this problem?
my code:
pin.Children.Add(new Ellipse()
{
Fill = new SolidColorBrush(Colors.Blue),
Width = 24,
Height = 24
});
为此,您需要使用MapElements,而不是Children's集合。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.