title: Changing DataTemplates at Runtime
body: <p>I'd like to be able to swap out data templates at runtime, but without the </p>
  
  <pre><code>FindResource("fdds") as DataTemplate
  </code></pre>
  
  <p>Type of code I've seen a lot.  I'd like to be able to just bind the template to look for the resource according to a property in my ViewModel.  Conceptually I'd like to be able to do this, but the compiler obviously doesn't like it:</p>
  
  <pre><code> ... ItemTemplate="{StaticResource {Binding Path=VMTemplate}}"&gt;
  </code></pre>
  
  <p>And then other commands would change the value of VMTemplate in the ViewModel. Is there a way to do something like this?</p>