Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AccordionCommands.ClearHotKeys(KeyGesture[]) Method

Unregisters the specified key gestures from the AccordionControl.

Namespace: DevExpress.Xpf.Accordion

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

NuGet Package: DevExpress.Wpf.Accordion

#Declaration

public void ClearHotKeys(
    params KeyGesture[] gestures
)

#Parameters

Name Type Description
gestures KeyGesture[]

A collection of keyboard combinations that need to be unregistered.

#Remarks

Use the ClearHotKeys method to remove the registered key gestures. For example, the plus and minus signs (which expand and collapse accordion items) cannot be typed in a TextBox placed into an AccordionItem/AccordionItem.HeaderTemplate

The code snippet below demonstrates how to unregister key gestures that expand and collapse the selected accordion item.

accordion.Commands.ClearHotKeys(new KeyGesture(Key.Add, ModifierKeys.Shift), new KeyGesture(Key.Subtract));
See Also