Skip to main content

GalleryItem.Checked Property

Gets or sets whether the item is checked.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.1.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