public void FrameworkElement_PreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e) { var _FrameworkElement = e.OriginalSource as FrameworkElement; if (e.Key == Key.Enter) { if(e.OriginalSource is Button) return; _FrameworkElement.MoveFocus(new TraversalRequest(FocusNavigationDirection.Next)); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)