1. 在UserControl上添加属性 IsTabStop="true"。
  2. 在cs代码中 loaded事件上调用方法 this.Focus()。
  3. 将KeyDown事件添加到UserControl 上。
 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
猜你喜欢
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
  • 2022-03-05
  • 2021-04-13
相关资源
相似解决方案