private void DeleteButton_Click(object sender, RoutedEventArgs e) { var result = MessageBox.Show("Confirm delete?", "Delete", MessageBoxButton.OKCancel); Editor editor = LayoutRoot.Resources["MyEditor"] as Editor; if (result == MessageBoxResult.OK) { if (editor.DeleteSelected.CanExecute(null)) editor.DeleteSelected.Execute(null); } }
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.