FindResource style not applied correctly
I am creating a button within C# and applying a style to it via FindResource. This method works fine and the template is applied to the button, but after the style is applied to the button created in code, the template beneath the style (button appearance) appears to work fine but none of the properties of the style (fontsize, foreground, etc) display.
Here's a sample of the control creation:
Button b = new Button();
b.Name = "Button";
RegisterName(b.Name, b);
b.Style = (Style)FindResource("FieldControlButton");
And a sample of the applied style:
<Style x:Key="FieldControlButton" TargetType="{x:Type Button}">
<Setter Property="OverridesDefaultStyle" Value="True"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Border Opacity="0" Background="#FF000000" />
<Border Style="{DynamicResource ControlBorderInner}" x:Name="border" Opacity="0" Margin="{DynamicResource ControlBorderThickness}"/>
<Border x:Name="border2" BorderBrush="#FFCCCCCC" BorderThickness="0,0,0,1">
<ContentPresenter x:Name="contentPresenter"/>
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Style" TargetName="border" Value="{DynamicResource ControlBorderInnerDisabled}"/>
<Setter Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="Foreground" Value="{DynamicResource NormalForegroundBrushAlt}"/>
<Setter Property="FontSize" Value="{DynamicResource FontSizeDefault}"/>
</Style>

