title: WPF Content View not displaying DataTemplate
body: <p>I have a ContentControl which will not display any XAML from its DataTemplate, and I feel certain that the problem I'm facing will be obvious for those with better WPF codemancy than myself.  I have substituted "Object" for my object name where appropriate for confidentiality reasons.</p>
  
  <p>In my MainWindow.xaml I have this:</p>
  
  <pre><code>&lt;ContentControl x:Name="ObjectDetailView"
                  Margin="20,20,20,20" Grid.Row="2" Grid.Column="1"
                  DataContext="{Binding SelectedItem, ElementName=ObjectListView}"
                  Template="{DynamicResource DetailControlTemplate}" 
                  ContentTemplate="{DynamicResource DetailDataTemplate}"/&gt;
  </code></pre>
  
  <p>I keep my templates in separate files to keep code readable.  The template is in a DataResources.xaml file that is being successfully used for the ListView.  The code for the content/template in question is:</p>
  
  <pre><code>&lt;ControlTemplate x:Key="DetailControlTemplate"&gt;
      &lt;Border Style="{StaticResource ObjectDetailBorderStyle}"&gt;
          &lt;ContentPresenter/&gt;
      &lt;/Border&gt;
  &lt;/ControlTemplate&gt;
  
  &lt;DataTemplate x:Key="DetailDataTemplate" DataType="{x:Type model:Object}"&gt;
    &lt;!-- Valid XAML --&gt;
  &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>In my Designer (both in VS and Blend) The border/background gradient displays, but nothing further.  Same for the running program.  </p>
  
  <p>If I move the <code>&lt;!-- Valid XAML --&gt;</code> into the Control Template, it displays fine, but I don't believe that's kosher, and I also don't believe that the data-binding will work that way. Please correct me if I'm wrong.</p>
  
  <p>ObjectListView is a ListView populated dynamically from my VM, and I'm using MVVM.  That all works just fine. I'd prefer this ContentControl only appears once there is a valid selected object in the list view, but that's UX sugar at this point, thus my only concern is to get this content control displaying my model's data.</p>
  
  <p>I'm also fairly new to StackOverflow, so if I missed anything or made an error in posting this question, please let me know.  I've not had luck with searching for this issue over the last few hours, as I don't want to waste your time.</p>