WPF开发中遇到的问题及解决系列(一):How can I programmatically click a Button
1
this.btnLogin.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
this.btnLogin.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
this.btnLogin.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));