title: How can I change the font size of a label in my ControlTemplate
body: <p>In my WPF ListBox, I have a style with a ControlTemplate for a ListBoxItem.  Inside that ControlTemplate I have a label defined.  Based on some details, I need to change the font size of the label.  So from my code-behind, I need to determine what the font should be and then I need to set it.</p>
  
  <p>Here is my style with the ControlTemplate (I've stripped out some irrelevant controls)</p>
  
  <pre><code>&lt;Style x:Key="RecordTabList" TargetType="{x:Type ListBoxItem}"&gt;
              &lt;Setter Property="Background" Value="{DynamicResource RecordIndexTabBackcolor}" /&gt;
              &lt;Setter Property="Template"&gt;
                  &lt;Setter.Value&gt;
                      &lt;ControlTemplate&gt;        
                              &lt;Label
                                  x:Name="myLabel" Grid.Column="0" Grid.ColumnSpan="1" Grid.Row="0" Grid.RowSpan="1" Margin="3,-2,0,-2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Foreground="{DynamicResource RecordIndexTabForeground}" 
                                  FontSize="10" Height="Auto" BorderThickness="3,0,0,0"
                                  Content="{Binding Path=Name}" /&gt;
                          &lt;/Grid&gt;
                      &lt;/ControlTemplate&gt;
                  &lt;/Setter.Value&gt;
              &lt;/Setter&gt;
  </code></pre>
  
  <p>How can I do this?</p>