private void SaveButton_Click(object sender, RoutedEventArgs e) { FeatureLayer featureLayer = MyMap.Layers["Threat Areas"] as FeatureLayer; featureLayer.SaveEdits(); }