Back to Devexpress

AccordionControl.DisplayMemberPath Property

wpf-devexpress-dot-xpf-dot-accordion-dot-accordioncontrol-2d3d9da4.md

latest2.9 KB
Original Source

AccordionControl.DisplayMemberPath Property

Gets or sets a field name in the bound data source whose values are displayed by accordion items. This is a dependency property.

Namespace : DevExpress.Xpf.Accordion

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

NuGet Package : DevExpress.Wpf.Accordion

Declaration

csharp
public string DisplayMemberPath { get; set; }
vb
Public Property DisplayMemberPath As String

Property Value

TypeDescription
String

A String value that specifies the data source field whose values are displayed by accordion items.

|

Remarks

Refer to the Data Binding topic for details on different approaches to binding the AccordionControl to data.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DisplayMemberPath property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-accordion-customize-appearance/CS/AppearanceCustomization/MainWindow.xaml#L31

xml
SelectedItem="{Binding SelectedItem}"
ChildrenPath="Nodes" DisplayMemberPath="Header"
IsCollapseButtonVisible="True"

wpf-accordion-bind-to-data-using-childrenpath/CS/ChildrenPath/MainWindow.xaml#L22

xml
SelectedItem="{Binding SelectedItem}"
                          ChildrenPath="SubItems" DisplayMemberPath="Caption"/>
</Border>

See Also

AccordionControl Class

AccordionControl Members

DevExpress.Xpf.Accordion Namespace