title: Change Data template dynamically
body: <p>I have a item control which is bound to Tasks. Each task has task state. I have defined different data templates for each task state, and also data template selector.</p>
  
  <p>Problem is that I am not able to figure out how to trigger data template selector when task state is changed dynamically.</p>
  
  <p><strong>I want to know how to use data triggers together with data templates.</strong></p>
  
  <p>If this will not work out, i will explore other alternatives such as<br>
  1. Attached Property bound to task state. Any change will dynamically set data template.<br>
  2. Visual State Manager  </p>