TextBox InputScope only Letters

 

        private void TextBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
        {
            if (e.Key >= Key.A && e.Key <= Key.Z)
            {
                e.Handled = false;
            }
            else if (e.Key == Key.Space)
                e.Handled = false;
            else
                e.Handled = true;
        }

Yorum ekle

Loading