wpf-devexpress-dot-xpf-dot-accordion-dot-accordioncontrol-57d6569d.md
Specifies the Accordion Header style. This is a dependency property.
Namespace : DevExpress.Xpf.Accordion
Assembly : DevExpress.Xpf.Accordion.v25.2.dll
NuGet Package : DevExpress.Wpf.Accordion
public Style HeaderStyle { get; set; }
Public Property HeaderStyle As Style
| Type | Description |
|---|---|
| Style |
A System.Windows.Style object.
|
You can use standard appearance properties to customize the HeaderStyle:
<dxa:AccordionControl.HeaderStyle>
<Style TargetType="dxa:HeaderPresenter" >
<Setter Property="Background" Value="#e6f2fa"/>
<Setter Property="Foreground" Value="Brown"/>
<Setter Property="BorderBrush" Value="#51555f"/>
<Setter Property="BorderThickness" Value="0,0,0,1"/>
</Style>
</dxa:AccordionControl.HeaderStyle>
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HeaderStyle property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-accordion-customize-appearance/CS/AppearanceCustomization/MainWindow.xaml#L37
CollapsedItemClickAction="Select" Margin="0,0,10,0">
<dxa:AccordionControl.HeaderStyle>
<Style TargetType="dxa:HeaderPresenter" >
See Also