Working with Arrow Keys in a WPF Textbox (C#)

前端 未结 1 1469
青春惊慌失措
青春惊慌失措 2021-01-17 15:28

Is there any way to catch the Up/Down arrow keys in a WPF TextBox (System.Windows.Controls.Textbox) and allow them to alter the text? I\'ve read about overiding

相关标签:
1条回答
  • 2021-01-17 16:06

    You could add event handlers to KeyUp and/or KeyDown, if that doesn't get what you need, using PreviewKeyUp and/or PreviewKeyDown should.

    0 讨论(0)
提交回复
热议问题