Skip to main content
A newer version of this page is available. .

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Accordion, DevExpress.Wpf.Navigation

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