WPF DelegateCommand CanExecute
private DelegateCommand searchCommand;
public DelegateCommand SearchCommand
{
get
{
if (null == searchCommand)
{
searchCommand = new DelegateCommand(Search, CanSearchExecute);
}
return searchCommand;
}
}
private bool CanSearchExecute()
{
return CanSearch;
}
https://muzizongheng.blog.csdn.net/