HeaderButtonStyle
The RadExpander
control allows you to customize the style of its header, which is represented by a RadToggleButton
element.
To change the header button style, assign a new Style
with TargetType="RadToggleButton"
to the HeaderButtonStyle
property of RadExpander
. This action will override the default style of the RadToggleButton
element. You can base the custom style on the ExpanderHeaderButtonStyle style, to keep the default look of the RadToggleButton
while applying the needed customizations. To do so, set the BasedOn
property. Different logic would have to be introduced depending on the used theming approach.
If the Implicit Styles theming approach is used, you can directly base the custom Style on the ExpanderHeaderButtonStyle
style via the BasedOn
property.
Approach when applying a theme via Implicit Styles
If another theme is used, for example, Office_Black, change the GenericFluent.xaml to GenericOfficeBlack.xaml.