Back to Devexpress

AccordionControl.SubItemExpandButtonPosition Property

wpf-devexpress-dot-xpf-dot-accordion-dot-accordioncontrol-c36f5ceb.md

latest3.3 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Accordion

Declaration

csharp
public ExpandButtonPosition SubItemExpandButtonPosition { get; set; }
vb
Public Property SubItemExpandButtonPosition As ExpandButtonPosition

Property Value

TypeDescription
ExpandButtonPosition

An ExpandButtonPosition enumeration value.

|

Available values:

NameDescription
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:

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:

xaml
<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

AccordionControl Class

AccordionControl Members

DevExpress.Xpf.Accordion Namespace