Global ViewAction commands

Jul 29, 2014 at 7:34 PM

I am sure the answer is yes... but I need to create some global commands that I can bind to various buttons on views... What is the proper way to do that with the ViewAction commands?

Trying to do the equivalent of RegisterCommand...

Jul 30, 2014 at 11:56 AM
Hmmm... I am not totally sure I follow. But for one, actions are commands, so whatever you can do with commands also works with actions. Also, you can potentially expose properties on view models that really access global things through their setters, so you could wire up commands like that.

Do you have an example of what exactly you are trying to do?

Jul 31, 2014 at 2:07 PM
HI Markus,

I was able to accomplish what I needed fairly easy... just had to use some special syntax to bind to the static command...

Command="{Binding Path=(models:HomeModel.HomeCommand)}"

This worked...