Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AccordionControl.EmptySourceText Property

Specifies the text that is displayed when the AccordionControl does not contain any items. This is a dependency property.

Namespace: DevExpress.Xpf.Accordion

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

NuGet Package: DevExpress.Wpf.Accordion

#Declaration

public string EmptySourceText { get; set; }

#Property Value

Type Description
String

A text that notifies the user that the accordion does not contain any items.

#Remarks

If the HasItems property returns false, the AccordionControl displays a notification:

AccordionControl HasItems

Use the EmptySourceText property to change the notification text.

You can customize the notification by changing EmptySourceTemplate as follows:

<dx:ThemedWindow.Resources>
    <ControlTemplate x:Key="{dxat:AccordionThemeKeys ResourceKey=EmptySourceTemplate,
        IsThemeIndependent = true}">
        <Image Source="{dx:DXImage 'SvgImages/Dashboards/DeleteDataSource.svg'}" Height="64"/> 
    </ControlTemplate>
</dx:ThemedWindow.Resources>

AccordionControl Custom EmptySourceTemplate

See Also