title: Accessing a control inside a ControlTemplate
body: <p>This is the xaml:</p>
  
  <pre><code>&lt;Page.Resources&gt;
      &lt;ControlTemplate x:Key="WeddingButtonBigTemplate" TargetType="Button"&gt;
          &lt;Grid&gt;
              &lt;Image x:Name="imgNormal" Source="../Images/Married_button2.png"/&gt;
              &lt;TextBlock x:Name="textBlock2" Style="{StaticResource RegularBlueSpecialBoldText}" LineHeight="28" LineStackingStrategy="BlockLineHeight" HorizontalAlignment="Center" Margin="10,30,10,70" TextWrapping="Wrap" TextAlignment="Center" VerticalAlignment="Stretch" &gt;
                  &lt;Run FontSize="20" Text="The event of"&gt;&lt;/Run&gt;
                  &lt;Run FontSize="28" Text="{DynamicResource strBride}"&gt;&lt;/Run&gt;
              &lt;/TextBlock&gt;
          &lt;/Grid&gt;
      &lt;/ControlTemplate&gt;
  &lt;/Page.Resources&gt;
  
  &lt;Grid HorizontalAlignment="Center" VerticalAlignment="Top" Width="1000"&gt;
      &lt;Button x:Name="btnWedding" HorizontalAlignment="Left" Margin="10,20,0,-49" VerticalAlignment="Top" Template="{StaticResource WeddingButtonBigTemplate}" Foreground="#FF2B4072" Width="380" Click="btnClick" /&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>I'm tring to get access to the TextBlock named <code>textBlock2</code>.<br>
  I've tried to override <code>OnApplyTemplate</code> but got null.</p>
  
  <p>I've tried:</p>
  
  <pre><code>Grid gridInTemplate = (Grid)btnWedding.Template.FindName("grid", btnWedding);
  var ct0 = btnWedding.Template.FindName("textBlock2", btnWedding);
  var ct1 = btnWedding.FindName("textBlock2");
  var ct2 = btnWedding.FindResource("textBlock2");
  </code></pre>
  
  <p>The gridInTemplate is null (sample taken from MSDN).<br>
  The ct# are all null, of course.</p>
  
  <p>What am I missing here?</p>