假如有一个wpf控件CheckBox chkBox,执行其单击事件的代码如下:
chkBox.RaiseEvent(new RoutedEventArgs(CheckBox.ClickEvent, chkBox));
假如有一个wpf控件CheckBox chkBox,执行其单击事件的代码如下:
chkBox.RaiseEvent(new RoutedEventArgs(CheckBox.ClickEvent, chkBox));
转载于:https://www.cnblogs.com/liancs/archive/2011/06/01/3879368.html