The Control class defines several properties that can be used by the control template to have an effect on the control when they are set. How the ControlTemplate uses the property depends on the property. The ControlTemplate must use the property in one of the following ways:
The following table lists whether the property is inherited or can be template bound and tells whether the default ControlTemplate for the Button utilizes it.
Property | Usage method | Used by the default ControlTemplate |
|---|
Background | Template binding | Yes |
BorderThickness | Template binding | Yes |
BorderBrush | Template binding | Yes |
FontFamily | Property inheritance or template binding | Yes |
FontSize | Property inheritance or template binding | Yes |
FontStretch | Property inheritance or template binding | Yes |
FontWeight | Property inheritance or template binding | Yes |
Foreground | Property inheritance or template binding | Yes |
HorizontalContentAlignment | Template binding | Yes |
Padding | Template binding | Yes |
VerticalContentAlignment | Template binding | Yes |