如果我用这里所示的方法连接xaml中的命令,它就能工作,但是如果我使用来自棱镜库的DelegateCommand,CanExecuteChanged不会对用户控件开火,我也不知道为什么。public partial class MainWindow : Window public MainWindow() LinkClicked = new DelegateCommandInitializeComponent(); LinkClicked.Rais
我有一个DelegateCommand类,里面有两个构造函数。当我将我的属性传递给该类的构造函数时,我得到一条错误消息,上面写着:
Error 1 The best overloaded method match for 'QMAC.ViewModels.DelegateCommand.DelegateCommand2 Argument 1: cannot convert from 'System.Windows.Input.ICommand' to 'System.Action<o