Back to Devexpress

AccordionControl.HasItems Property

wpf-devexpress-dot-xpf-dot-accordion-dot-accordioncontrol-ba7d45aa.md

latest2.1 KB
Original Source

AccordionControl.HasItems Property

Indicates whether the AccordionControl contains 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 bool HasItems { get; }
vb
Public ReadOnly Property HasItems As Boolean

Property Value

TypeDescription
Boolean

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

|

Remarks

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

Use the EmptySourceText property to change the notification text.

You can customize the notification by changing EmptySourceTemplate as follows:

xaml
<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>

See Also

AccordionControl Class

AccordionControl Members

DevExpress.Xpf.Accordion Namespace