this.Submit.AddHandler(Button.ClickEvent, new RoutedEventHandler(this.Submit_Click)); //这种是无效的方法

 this.Submit.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)); //这种是有效的方法 

相关文章:

  • 2021-12-04
  • 2022-01-08
  • 2021-12-19
  • 2021-11-17
  • 2021-11-17
  • 2021-11-17
  • 2021-12-04
  • 2021-12-04
猜你喜欢
  • 2021-11-17
  • 2021-12-29
  • 2021-11-17
  • 2021-11-17
  • 2021-11-20
  • 2021-11-27
  • 2021-11-27
  • 2021-12-09
相关资源
相似解决方案