Each "stylesheet-styled" WPF element has a style attribute that can be set internally-using the XAML attribute-the syntax of the element (discussed in the first chapter), as in example 5-4.
Example 5-4
<Button x:Name="cell00" />
<Button.Style>
<Style>
<Setter Property="Button.FontSize" Value="32" />
<Setter Property="Button.FontWeight" Value="Bold" />
</Style>
</Button.Style>
</Button>
Because we want to bundle attribute values in our style, we have a STYLE element with two setter child elements, one that we want to set each property, such as FontSize and FontWeight, with a button prefix that indicates the class that contains the attribute. The attributes that apply to styles are dependency properties, which are described in chapter Nineth.
Because of the extra style syntax, and because inline styles cannot be shared across elements, inline styles actually fall into more input when setting properties. For this reason, inline styles are often used without naming styles.