WPF中后台触发事件的方法
参考网上方法,整理记录了两种方法。以Button按钮为例:1直接调用Button Click方法,参数传入nullMyButton_Click(null, null)2使用RaiseEvent方法//msdn中不推荐在代码中使用Mouse.PrimaryDevice。//原文:This property supports the Windows Presentation Foundation infrastructure and is not intended to be used di
原创
2020-06-04 23:25:41 ·
2988 阅读 ·
0 评论