I am creating several markers and want to hide all but the last one. Each marker as a different imagesource. This is what I am trying:
Dim markerOverlay As SimpleMarkerOverlay = DirectCast(WpfMap1.Overlays("MarkerOverlay"), SimpleMarkerOverlay)
For i As Integer = 0 To markerOverlay.Markers.Count - 2
markerOverlay.Markers(i).Visibility = False
Next
But it does not work... it's as if the visibility property has no affect on the imagesource.