title: WPF - can't display page content
body: <p>I'm trying to display a wpf page inside a wpf window (to reproduce some bug in an isolated environment) and I'm unable to see the page inside the window.</p>
  
  <p>My code is quite simple:</p>
  
  <p><strong>MainWindow.xaml:</strong></p>
  
  <pre><code> &lt;ContentPresenter
          Content="{Binding ElementName=Root, Path=MyPage}"
          ContentTemplate="{Binding ElementName=Root, Path=MyPage.TT}"
          /&gt;
  </code></pre>
  
  <p><strong>MainWindow.xaml.cs:</strong></p>
  
  <pre><code> public MainWindow()
      {
          InitializeComponent();
          this.MyPage = new Page1();
      }
  </code></pre>
  
  <p><strong>Page1.xaml:</strong></p>
  
  <pre><code>&lt;DataTemplate x:Name="TT"&gt;
  &lt;Grid&gt;
      &lt;TextBlock Text="doodle dood doodle da"&gt;&lt;/TextBlock&gt;
  &lt;/Grid&gt;
  &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>Any Idea why MainWindow appears empty?</p>
  
  <p>Thanks,
  Li</p>