Skip to main content

AccordionItem.CanSelect Property

Specifies whether the current accordion item can be selected with mouse or keyboard. This is a dependency property.

Namespace: DevExpress.Xpf.Accordion

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


public bool CanSelect { get; set; }

Property Value

Type Description

true, if the current accordion item can be selected; otherwise, false.


Set the CanSelect property to false to prevent a current item from being selected by mouse or via keyboard.

<Window ...
        <dxa:AccordionItem Header="Start Page"/>
        <dxa:AccordionItem Header="Preferences">
            <dxa:AccordionItem Header="Account Info"/>
            <!-- This accordion item cannot be selected -->
            <dxa:AccordionItem Header="Application Settings" CanSelect="False"/>
        <dxa:AccordionItem Header="About"/>
See Also