private void MoveCaret(Key key) { var evtArgs = EventGenerator.CreateKeyEventArgs(key); if (Common.Context.CaretMoveCommand.CanExecute(evtArgs)) { Common.Context.CaretMoveCommand.Execute(evtArgs); } }
public void WhenIHitDeleteKey() { var key = Key.Delete; var evtArgs = EventGenerator.CreateKeyEventArgs(key); if (Common.Context.RemoveTextCommand.CanExecute(evtArgs)) { Common.Context.RemoveTextCommand.Execute(evtArgs); } }