All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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.v21.1.dll

Declaration

public bool CanSelect { get; set; }

Property Value

Type Description
Boolean

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

Remarks

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

<Window ...
        xmlns:dxa="http://schemas.devexpress.com/winfx/2008/xaml/accordion">
    <dxa:AccordionControl>
        <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>
        <dxa:AccordionItem Header="About"/>
    </dxa:AccordionControl>
</Window>
See Also