DelegateCommand of Prism doesn't requery the command.

Topics: Prism v4 - WPF 4
Jul 17, 2011 at 2:52 PM


I have made one command using Prism's DelegateCommand.

But it doesn't requery the CanExecution function it executes it only once.

How to make DelegateCommand to requery the CanExecute funciton ?



Jul 18, 2011 at 12:36 PM
Edited Jul 18, 2011 at 12:37 PM

Hi Ashsih,

When you create an instance of a DelegateCommand, you have two overloads of the constructor; one that accepts an Execute delegate, and one that accepts both an Execute and a CanExecute delegates as parameters.

You might find more information about this here.

I hope you find this helpful.

Guido Leandro Maliandi