IActiveAware usages with DelegateCommand

Topics: Prism v4 - WPF 4
Jan 12, 2011 at 8:12 AM


I am trying to understand the working of IActiveAware interface implemented in DelegateCommand class. I trying to create a DelegateCommand which canbe enabled/disabled based on the current View (Active View).

Any suggestions/links/pointers are highly appreciated.




Jan 12, 2011 at 5:20 PM

Hi Indro,

You could check the following thread, in which the use of IActiveAware interface in DelegateCommands is explained:

CompositeCommand for ANY registered DelegateCommand that CanExecute

Basically, the IActiveAware interface is used in DelegateCommands in order for CompositeCommands to have a notion of which DelegateCommand is active. You can find an example of the use of composite commands in the Commanding QuickStart.

I hope you find this helpful.

Guido Leandro Maliandi

Jan 13, 2011 at 2:28 PM

Thanks Guido. Looks fine to me:)


Apr 25, 2012 at 9:19 PM


For those interested in this subject, I believe you could also find the following blog post interesting:


Agustin Adami