title: WPF DataTemplate Event binding to object function
body: <p>I'm currently writing DataTemplate for my custom type lets say FootballPlayer. In this template I would like to put ie. Button and make that button when clicked call some of FootballPlayer functions eg. Run().</p>
  
  <p>Is there any simple or complex, but clean way to achieve this kind of behaviour?</p>
  
  <p>The DataTemplate I believe is aware of all the information about my object because DataType is set and clr-namespace is included.</p>
  
  <pre><code>&lt;DataTemplate DataType="{x:Type my:FootballPlayer}"&gt;
  
  &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>I suppose there is a clean way to achieve this. Can anyone tell me how?</p>
  
  <p>//edit
  The solution doesn't have to be clean. Now, after some investigation I'm just looking for any solution that can make a call to function / raise an event on the object being bound.</p>