Skip to main content

AccordionControl.SubItemExpandButtonPosition Property

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.v24.2.dll

NuGet Package: DevExpress.Wpf.Accordion

Declaration

public ExpandButtonPosition SubItemExpandButtonPosition { get; set; }

Property Value

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.

Remarks

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

ExpandButtonPosition
Gets or sets the position of the expand-collapse button. This is a dependency property.
RootItemExpandButtonPosition
Gets 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:

Accordion-SubItemExpandButtonPosition

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