Josh Smith CommandViewModel in MVVM, what's the point?

I was looking through the Josh Smith MVVM example , and I noticed that it defines the base model of the CommandViewModel and looks at its demo application, I just do not see the point.

+4
source share
2 answers

As far as I can tell, CommandViewModel is just a command that the user can execute. A collection of these view models is used to visualize a set of commands similar to a toolbar or shortcut list.

+6
source

I got the impression that this is a presentation model whose sole task is the only team. I suppose this allows you to not only encapsulate the command, but also other related things like Name, but also potentially other interface elements related to the command (tooltip, etc.).

+1
source

All Articles