title: WPF Equivalent of OwnerDraw
body: <p>In a WinForms application that I currently maintain I have a tree control with several thousand nodes in it.  Each node is owner drawn with a custom, dynamically generated, icon (each icon is unique).  I'm thinking about converting this application in to WPF, but I don't know how to properly handle this tree view.  I know the standard way of doing this in WPF would be to use a template for each item with an image control for my icon content, but I'm worried about performance if I bind several thousand dynamically created images.  With OwnerDraw I don't have to store the icon, I can just generate and paint it only when the nodes are actual visible.</p>
  
  <p>Is there a standard way of handling this scenario in WPF?</p>
  
  <p>Screenshots of the current application can be seen <a href="http://www.bay12forums.com/smf/index.php?topic=103360.0" rel="nofollow">here</a> to give you an idea of what I'm dealing with.</p>