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

BaseGallery.CheckSelectedItemViaKeyboard Property

Gets or sets whether the gallery item currently selected via the keyboard should be immediately checked.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Appearance")]
public bool CheckSelectedItemViaKeyboard { get; set; }

#Property Value

Type Description
Boolean

true if the gallery item currently selected via the keyboard should be immediately checked; otherwise, false.

#Remarks

By default, navigating through a gallery’s items via the keyboard only selects (highlights) items but does not check them. To check a selected item, you have to press the ‘Enter’ key. If the CheckSelectedItemViaKeyboard property is set to true, navigating to any gallery item via keyboard arrows fires the BaseGallery.ItemCheckedChanged event and immediately checks the selected item.

Note

This setting has effect when only one gallery item can be selected at one time within a gallery or a gallery group. The BaseGallery.ItemCheckMode property must be set to the ItemCheckMode.SingleCheck, ItemCheckMode.SingleCheckInGroup, ItemCheckMode.SingleRadio or ItemCheckMode.SingleRadioInGroup.

See Also