public RedoCommandDefinition() { _command = ReactiveCommand.Create(); _command.Subscribe(_ => { var shell = IoC.Get<IShell>(); (shell.SelectedDocument as EditorViewModel)?.Redo(); }); }