In which namespace is the DelegateCommand in?

devoured elysium picture devoured elysium · Jul 20, 2010 · Viewed 16.5k times · Source

I am trying to work out an example from ".NET Domain Driven Design with C#", which contains a code example where you can see declared some attributes of type DelegateCommand.

Now, I've tried googling it up, but I can't find its reference anywhere on MSDN (actually, I found this article, but not DelegateCommand's article itself).

Is the DelegateCommand something that's part of WPF or is it just something created in the book?

If it's part of WPF (or any other MS product), in which assembly/namespace is it?

Answer

Gob00st picture Gob00st · Jun 20, 2012

If you use MS Prism,downlaod the lib, add the reference to the project, then you have

using Microsoft.Practices.Prism.Commands; // for DelegateCommand & RaisePropertyChanged