Based on the below xaml, does anybody know why if I create 2 (or more) buttons (with implicit styles), only 1 of them actually displays the content, however all display the blue border.
<Style TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="1">
<ContentPresenter Content="{TemplateBinding Content}"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="BorderBrush" Value="Blue"/>
<Setter Property="Content">
<Setter.Value>
<Grid Background="Firebrick"/>
</Setter.Value>
</Setter>
</Style>
Checking the code behind, all 3 buttons have the exact same content, yet it is only ever displayed on 1 of them
if (a.Style == b.Style && a.Style == c.Style)
{
if (a.Content == b.Content && a.Content == c.Content)
{
// comes in here!
}
}