Select to view content in your preferred language

DelegateCommand does not seem to call the canExecuteFunc- is this a bug..???

103
1
3 weeks ago
Gurunara
Frequent Contributor

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));
}
}

0 Kudos
1 Reply
JesseCloutier
Esri Community Manager

Hi @Gurunara, we appreciate you sharing a potential bug with the broader Esri Community; however, Esri does not actively track software defects posted here. The official channel for investigating and validating bugs is Esri Technical Support. All customers experiencing a potential software bug should leverage technical support to report and investigate the issue.

By reporting bugs through technical support, Esri can better track the scope and impact of the issue across all our customers and better prioritize it with our product teams. Our teams can also investigate the issue more thoroughly to see if there is a solution, workaround, or patch to get you back up and running as soon as possible.

As a reminder, Esri Community is primarily a self-service support platform where Esri users can ask or answer each other’s questions, share feature requests, and collaborate to solve problems with GIS.

*Note that this is a scripted message prompted when posts allude to a potential product bug.

Jesse Cloutier
Community Manager, Engagement & Content
0 Kudos