WPF中如何用代码触发按钮Click处理

btnOk.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));

原文地址:https://www.cnblogs.com/dajianshi/p/4707771.html