比如Button的click事件,可以用:buttonName.RaiseEvent(new RoutedEventArgs(System.Windows.Controls.Button.ClickEvent));