.net - Implementing and using the ICommand interface, MVVM -


Although I fell in love with the MVVM pattern in depth, there are a lot of problems happening there.

< P> I wonder what is good for parameters of IComamnd interface methods

for example zero executed (object parameter);

I tie my view to see such models

    

and therefore " parameter " will always be empty.

Any hints are welcome.

Thank you!

Update: Scare, I got the answer after one minute of posting this question. There can obviously be the property of a commandpacker.

You can add CommandParameter = "" to pass a parameter. Generally you will give a part of the binding, or binding of the ID, so the command knows which record to work with.


Comments