mvvmFX icon indicating copy to clipboard operation
mvvmFX copied to clipboard

Payload for Commands

Open sideisra opened this issue 9 years ago • 1 comments

In some situations the view needs to execute a command provided by the view model and provide necessary data for the command execution. At the moment these data must be provided by property binding between view and view model although these data are necessary for one command execution only.

So it would be great if there is a command interface and implementation which takes a payload and passes it as parameter to the action method.

interface Command<T>{ public void execute(T payload); }

sideisra avatar Dec 17 '15 20:12 sideisra

#198

manuel-mauky avatar Apr 28 '16 12:04 manuel-mauky