wpf-devexpress-dot-xpf-dot-accordion-dot-accordioncontrol-c36f5ceb.md
Gets or sets the position of the expand-collapse button within the accordion subitems. This is a dependency property.
Namespace : DevExpress.Xpf.Accordion
Assembly : DevExpress.Xpf.Accordion.v25.2.dll
NuGet Package : DevExpress.Wpf.Accordion
public ExpandButtonPosition SubItemExpandButtonPosition { get; set; }
Public Property SubItemExpandButtonPosition As ExpandButtonPosition
| Type | Description |
|---|---|
| ExpandButtonPosition |
An ExpandButtonPosition enumeration value.
|
Available values:
| Name | Description |
|---|---|
| None |
The expand button is not displayed.
| | Left |
The expand button is displayed at the left side of the accordion item.
| | Right |
The expand button is displayed at the right side of the accordion item.
|
Use the following properties to hide the expand-collapse button or change its position:
ExpandButtonPositionGets or sets the position of the expand-collapse button. This is a dependency property.RootItemExpandButtonPositionGets or sets the position of the expand-collapse button within the root items. This is a dependency property.
The code sample below demonstrates how to show the expand-collapse button at root items’ left side:
<dxa:AccordionControl SubItemExpandButtonPosition="Left"> ... </dxa:AccordionControl>
The image below shows the result:
Tip
Set the SubItemExpandButtonPosition to None to remove the offset for the accordion subitems.
Refer to the following topic for more information: Expanding and Collapsing.
See Also