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

GalleryItem.Checked Property

Gets or sets whether the item is checked.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(false)]
public bool Checked { get; set; }

#Property Value

Type Default Description
Boolean false

true if the item is checked; otherwise, false.

#Remarks

A gallery item can have two states: normal (elevated) and pressed. The Checked property specifies the item’s state. The item’s state is not toggled automatically on a click.

You can enable automatic item checking on a click, via the BaseGallery.ItemCheckMode property. With this feature enabled, a click on a gallery item automatically changes its check state via the Checked property.

It’s also possible to implement manual item checking. For instance, you can handle the BaseGallery.ItemClick event, and manipulate an item’s Checked setting according to your logic.

See Also