title: Implementing and using the ICommand interface, MVVM
body: <p>Although I deeply fell in love with the MVVM pattern there seem to be a lot of problems I cannot (yet) figure out for myself.</p>
  
  <p>I wonder what the parameters of the methods of the IComamnd interface are good for</p>
  
  <p>e.g. <code>void Execute(object parameter);</code></p>
  
  <p>I tie my view to the view model like this</p>
  
  <pre><code>&lt;Button Command="{Binding SomeCommand}" ... /&gt;
  </code></pre>
  
  <p>and so "<code>parameter</code>" will always be null.</p>
  
  <p>Any hints are welcome.</p>
  
  <p>Thanks!</p>
  
  <p><strong>Update:</strong>
  Darn, one minute after I posted this question I found the answer on <a href="https://stackoverflow.com/questions/335849/wpf-commandparameter-is-null-first-time-canexecute-is-called">Stackoverflow</a>. Obviously controls do have a CommandParameter property.</p>