Skip to main content
All docs
V25.1
  • AccordionControl.HasItems Property

    Indicates whether the AccordionControl contains items. This is a dependency property.

    Namespace: DevExpress.Xpf.Accordion

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

    NuGet Package: DevExpress.Wpf.Accordion

    Declaration

    public bool HasItems { get; }

    Property Value

    Type Description
    Boolean

    true if the accordion control contains items; otherwise, false.

    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