title: Window.Content with DataTemplate
body: <p>I have a DataTemplate it's DataType is the MyViewModel, if I do something like:</p>
  
  <pre><code>&lt;ContentPresenter Content="{Binding SomeViewModel}"/&gt;
  </code></pre>
  
  <p>if I set the "SomeViewModel" to be MyViewModel (the VM that defined in the DataTemplate), I can see the DataTemplate render on the view, which is expected.</p>
  
  <p>What I want to do is this:</p>
  
  <pre><code>Window host = new Window()
  host.Content = new MyViewModel();
  host.Show();
  </code></pre>
  
  <p>I expect this to show a window with the DataTemplate that associated with the MyViewModel render on it, instead I get a window with a single line, the path to my ViewModel.</p>
  
  <p>what am I doing wrong ?</p>