AccordionCommands.ClearHotKeys(KeyGesture[]) Method
Unregisters the specified key gestures from the AccordionControl.
Namespace: DevExpress.Xpf.Accordion
Assembly: DevExpress.Xpf.Accordion.v24.1.dll
NuGet Package: DevExpress.Wpf.Accordion
Declaration
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