First one works using RelayCommand in that the canExecuteCommand function gets called... but the DelegateCommand form never gets called for the canExecuteCommand passed in.
Is this a bug?
public ICommand CmdSaveEdits
{
get
{
return new RelayCommand(() => {
SaveEdit();
}, () => (Project.Current.HasEdits));
}
}
public ICommand CmdSaveEdits
{
get
{
return new DelegateCommand<object>((args) => {
SaveEdit();
}, (args) => (Project.Current.HasEdits));
}
}