//Обработчик Undo private void OnExecutedCommands(object sender, ExecutedRoutedEventArgs e) { if (e.Command == ApplicationCommands.Undo) { _undoRedoCaretaker.Undo(); } }