The QueryItems method is invoked in the background thread, but the MapShapeFill
class uses types which can be used in the UI thread only. So, in this case I would recommend you to use the MapShapeData.SerializedShapeFill
property instead of using ShapeFill
The sample code is below.
PolylineData pld =
StrokeColor = Colors.Red,
StrokeThickness = 2
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos
and start improving your app based on facts, not hunches.