private void Button_Click(object sender, RoutedEventArgs e) { _stops.Clear(); _barriers.Clear(); foreach (Layer layer in MyMap.Layers) if (layer is GraphicsLayer) (layer as GraphicsLayer).Graphics.Clear(); }