Exemplo n.º 1
0
        private void AssociatedObject_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
        {
            MyTextBox textBox = sender as MyTextBox;

            if (textBox != null)
            {
                if (e.Key == Key.Return || e.Key == Key.Enter)
                {
                    textBox.MoveFocus(new TraversalRequest(FocusNavigationDirection.Next));
                }
            }
        }