Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AccordionItem.ExpandButtonPosition Property

Gets or sets the position of the expand-collapse button. This is a dependency property.

Namespace: DevExpress.Xpf.Accordion

Assembly: DevExpress.Xpf.Accordion.v24.2.dll

NuGet Package: DevExpress.Wpf.Accordion

#Declaration

#Property Value

Type Description
Nullable<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.

#Remarks

Use the following properties to hide the expand-collapse button or change its position:

Property Description
ExpandButtonPosition Specifies the expand-collapse button‘s position for the current accordion item.
AccordionControl.RootItemExpandButtonPosition Specifies the expand-collapse button‘s position for all root items.
AccordionControl.SubItemExpandButtonPosition Specifies the expand-collapse button‘s position for all subitems.

The code sample below demonstrates how to show the expand-collapse button at root items’ left side:

<dxa:AccordionControl RootItemExpandButtonPosition="Left"> ... </dxa:AccordionControl>

The image below shows the result:

AccordionExpandingButtonPosition

Refer to the Expanding and Collapsing topic to learn more.

See Also