Back to Devexpress

AccordionItem.ExpandButtonPosition Property

wpf-devexpress-dot-xpf-dot-accordion-dot-accordionitem-05f9cab7.md

latest3.4 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Accordion

Declaration

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

Property Value

TypeDescription
Nullable<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:

PropertyDescription
ExpandButtonPositionSpecifies the expand-collapse button‘s position for the current accordion item.
AccordionControl.RootItemExpandButtonPositionSpecifies the expand-collapse button‘s position for all root items.
AccordionControl.SubItemExpandButtonPositionSpecifies 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:

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

The image below shows the result:

Refer to the Expanding and Collapsing topic to learn more.

See Also

AccordionItem Class

AccordionItem Members

DevExpress.Xpf.Accordion Namespace