title: WPF write ControlTemplate for a ContentControl when its content type is UserControl
body: <p>I have a <code>ContentControl</code> like this:</p>
  
  <pre><code>&lt;ContentControl&gt;
      &lt;userControls:TestControl/&gt;
  &lt;/ContentControl&gt;
  </code></pre>
  
  <p>OR like this <em>[when i have PRISM system]</em>:</p>
  
  <pre><code>&lt;ContentControl prism:RegionManager.RegionName="TestView"/&gt;
  </code></pre>
  
  <p>I see the final <code>UserControl</code> <em>well</em> until this step when i start the program.</p>
  
  <p>In the above samples the <code>Content</code> type is <code>UserControl</code>. Now i want give a <code>ControlTemplate</code> to this <code>ContentControl</code>. Then i created a <code>style</code> named <code>StyleTest</code> and used it in my Xaml:</p>
  
  <pre><code>&lt;ContentControl    Style="{StaticResource StyleTest}"&gt; .....
  </code></pre>
  
  <p>My style:</p>
  
  <pre><code>&lt;Style x:Key="StyleTest" TargetType="ContentControl"&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate&gt;
                  &lt;Grid Margin="10"&gt;
                      &lt;Border CornerRadius="10" BorderBrush="#ffffffff" BorderThickness="5"&gt;
                          &lt;StackPanel&gt;
  
                              &lt;ContentPresenter Content="{Binding}"/&gt;
  
                              &lt;TextBlock&gt;Some additional text to test template&lt;/TextBlock&gt;
  
                          &lt;/StackPanel&gt;
                      &lt;/Border&gt;
                  &lt;/Grid&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>But when i start the program the <code>UserControl</code> can not be seen and i just see this text and a border around it:      <em>Some additional text to test template</em></p>
  
  <ul>
  <li>What i must write instead of above line of code to see my <code>UserControl</code> again with a white border around it?</li>
  <li>Why the <code>UserControl</code> not showing with above code (above style)?</li>
  </ul>