Although I have fallen deeply in love with the MVVM pattern, it seems that I have many problems that I cannot (yet) figure out for myself.
I wonder which parameters of the IComamnd interface methods are good for
eg. void Execute(object parameter);
I tie my view to a model of presentation like this
<Button Command="{Binding SomeCommand}" ... />
and therefore " parameter " will always be null.
Any hints are welcome.
Thanks!
Update: Darn, a minute after I posted this question, I found the answer at https://stackoverflow.com/a/220860/ .... Obviously, controls have the CommandParameter property.
Alex janzik
source share