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

相关文章: