I am new to Prism and I need to define Commands that are global to my application.
These commands, for instance "create product", can be triggered in more than one view in
my application. For example, the user can ask to create a product from the main menu
that is in the MainHeader Module or from Quick Access Toolbar that is treated by another
The commands must be global and must be treated by one class. Maybe a CommandController
class. How can I define a GlobalCommands that are in fact executed by one class.
My current version is using EventAggregators. I have a global CommandId table and the
modules that execute the commands fire an event that is subscribed by the
But in this case I have, in fact, local commands that notify the global controller using
Is it the best practice ???
How could I define the commands globally and drive their execution to the same class
no mather which module triggered them.
Thanks in advance