private void Button_ClearMap(object sender, System.Windows.RoutedEventArgs e) { MyMapGrid.Children.Clear(); MyMapGrid.UpdateLayout(); }