Wednesday, 7 August 2013

Command class in Caliburn Micro

Command class in Caliburn Micro

On my first project trying out Caliburn.Micro, I like a lot of the things :-)
One thing I miss (or havn't discovered yet) is how to separate the
viewmodel and a command. CM doesn't support ICommand, as it's way of doing
things is superior. I'm sure it's true, so I would love a small push in
the right direction to achieve this or perhaps discover a better way.
As I understand you have to put the "Execute" method and "CanExecute"
property directly in the viewmodel, named to match the control in the
view, to get the magic to work.
I would like to put the "Execute" and "CanExecute" in a different object
that is property on the viewmodel and then CM would automatically bind to
that object, using the control name and property names as usually.
Repost from the forum on Caliburn Micro, I didn't get any answers so I'm
trying my luck here.

No comments:

Post a Comment