更新时间:2023-11-03 16:41:10
也许最干净的方法是使用数据验证 ,您的 IsValid功能是用户是否对提示回答是。
Probably the cleanest way is to use Data Validation on your binding, where your "IsValid" function is whether the user answers Yes to the prompt.
更新:这篇文章也很好
如何从Perl字符串中提取文件路径?
如何在(wpf)中获取新窗口事件
WPF:如何为内容更改创建路由事件?
WPF定制路由事件 - 如何取消订阅?
如何取消路由事件?
如何禁用由子元素触发的鼠标事件?
由子元素触发的鼠标悬停事件 - 如何阻止它?
如何显示由onclick事件触发的div
如果单击取消按钮,如何忽略离开事件?
Angular 5:如何在子组件中获取父组件的路由参数?