title: WPF DataTemplate Binding depending on the type of a property
body: <p>I have a collection of objects bound to a hierarchical data template, each of my objects have a property on them (lets call it Property "A") that is of a certain type. This type varies among each of the objects.</p>
  
  <p>If the data template contains an image and some text, what would be the best way to change the image that is displayed in the template based on the type of property "A".</p>
  
  <p>I know I could just stick this into a converter and do the binding translation manually in code, but with all the binding facilities available in WPF, I think theres probably a better way.</p>