Skip to main content
All docs
V25.1
  • AccordionControlElement.ShortcutKey Property

    Gets or sets the BarShortcut that invokes the element’s Click event.

    Namespace: DevExpress.XtraBars.Navigation

    Assembly: DevExpress.XtraBars.v25.1.dll

    NuGet Package: DevExpress.Win.Navigation

    Declaration

    [DXCategory("Appearance")]
    public BarShortcut ShortcutKey { get; set; }

    Property Value

    Type Description
    BarShortcut

    A BarShortcut that invokes the element’s Click event.

    Remarks

    Use the ShortcutKey property to assign a shortcut to an Accordion element. A shortcut assigned to an Accordion element has priority over global shortcuts.

    accordionControlElement1.ShortcutKey = new DevExpress.XtraBars.BarShortcut(Keys.J);
    

    Note

    If the same shortcut is assigned to a Ribbon/Bar element, the shortcut invokes the Ribbon/Bar element’s functionality.

    See Also