更新时间:2023-12-03 20:18:10
您可以从Button派生并覆盖
You can derive from Button and override the OnIsPressedChanged method and fire a custom event there.
或者您可以绑定到ButtonBase.IsPressed 属性.
Or you can bind to the ButtonBase.IsPressed property.
按下/取消按下WPF按钮时的触发事件
按下TAB键时如何触发事件?
按下TAB或ENTER或BACK时未触发按键事件
按钮单击事件触发错误的事件处理程序
如何在jQuery中单击按钮时获取所选下拉值的值
如何取消的winform按钮单击事件?
如何覆盖“取消"ProgressDialog 的按钮事件?
当用户按下其他控件/空格时,如何取消聚焦 UITextFields?
按下按钮时GPIO事件检测未提供输出
当用户使用HTML5 File API按下按钮时,如何读取本地文件?