1.使用NuGet 安装后ViewModelLocator会直接报错,这是using的引用不对
将引用改为using CommonServiceLocator
2.使用RelayCommand时判断命令是否可用的方法不起作用
把using GalaSoft.MvvmLight.Command;改为using GalaSoft.MvvmLight.CommandWpf;
1.使用NuGet 安装后ViewModelLocator会直接报错,这是using的引用不对
将引用改为using CommonServiceLocator
2.使用RelayCommand时判断命令是否可用的方法不起作用
把using GalaSoft.MvvmLight.Command;改为using GalaSoft.MvvmLight.CommandWpf;