Back to Devexpress

AccordionItem Class

wpf-devexpress-dot-xpf-dot-accordion-2476ebd5.md

latest3.6 KB
Original Source

AccordionItem Class

Represents the Accordion Item.

Namespace : DevExpress.Xpf.Accordion

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

NuGet Package : DevExpress.Wpf.Accordion

Declaration

csharp
public class AccordionItem :
    TreeViewItem,
    IVirtualizingPanelOwner
vb
Public Class AccordionItem
    Inherits TreeViewItem
    Implements IVirtualizingPanelOwner

Remarks

Accordion Items are main elements within the AccordionControl.

AccordionItem objects represent two types of accordion items:

  • Root items are top-level accordion items.
  • Subitems are nested within other items.

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

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-create-a-fluent-design-using-appearance-options/CS/FluentDesignTemplate/ViewResourceDictionary.xaml#L14

xml
</dxmvvm:ObjectToObjectConverter>
<Style x:Key="accordionChildItemStyle" TargetType="{x:Type dxa:AccordionItem}">
    <Setter Property="dxwui:RevealHighlightOptions.Mode" Value="BackgroundAndBorder"/>

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

xml
<dxa:AccordionControl.ItemContainerStyle>
    <Style TargetType="dxa:AccordionItem">
        <Setter Property="Foreground" Value="Red"/>

Inheritance

Show 11 items

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control ItemsControl HeaderedItemsControl TreeViewItem AccordionItem

See Also

AccordionItem Members

DevExpress.Xpf.Accordion Namespace