private void MoveCarret(NumberBox numberBox, FocusNavigationDirection direction) { if (numberBox.SelectionLength == 0) numberBox.MoveFocus(new TraversalRequest(direction)); }