title: Get control in code from ControlTemplate By Name
body: <p>I have next control template in my WPF app.</p>
  
  <pre><code>    &lt;Style TargetType="Label" x:Key="LabelStyle"&gt;
          &lt;Setter Property="Template"&gt;
              &lt;Setter.Value&gt;
                  &lt;ControlTemplate TargetType="Label"&gt;
                      &lt;Grid&gt;
                          &lt;Grid.ColumnDefinitions&gt;
                              &lt;ColumnDefinition Width="40"/&gt;
                              &lt;ColumnDefinition/&gt;
                          &lt;/Grid.ColumnDefinitions&gt;
                          &lt;TextBox x:Name="MyTextBlock" Text="{TemplateBinding Content}"  Height="20" HorizontalAlignment="Left"  VerticalAlignment="Top" /&gt;
                          &lt;Label Content="{TemplateBinding Content}" Grid.Column="1" Grid.Row="1"/&gt;
                      &lt;/Grid&gt;
                  &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  </code></pre>
  
  <p>TextBox "MyTextBlock" is invisible in C# code of window. How can I access to this textblock in code</p>