title: silverlight commands via prism, getting the event args for the event?
body: <p>I've a data form in SL3 which uses Prisms Commands with Attached Behaviour for trapping events.</p>
  
  <p>(It fairly tightly follows this blog post:
  <a href="http://blogs.southworks.net/dschenkelman/2009/04/18/commands-with-attached-behavior-for-silverlight-3-dataform/#comment-607" rel="nofollow noreferrer">http://blogs.southworks.net/dschenkelman/2009/04/18/commands-with-attached-behavior-for-silverlight-3-dataform/#comment-607</a>)</p>
  
  <p>Basically, it's all hooked up and working fine, however in the viewmodel, I can't see how I can access the event args for the event.</p>
  
  <p>In the constructor of the VM I define the delegate command:</p>
  
  <pre><code>this.EditEnded = new DelegateCommand&lt;object&gt;(o =&gt; {
      //how can I tell if the button clicked was cancel or save?
  }
  </code></pre>
  
  <p>But I need access to the DataFormItemEditEndedEventArgs property to so I can define what needs to be done? I want to perform different actions depending if the user cancelled or committed.</p>