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.Focus() Method

Focuses this GalleryItem.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public bool Focus()

#Returns

Type Description
Boolean

true if the item was successfully focused; otherwise, false.

#Remarks

The Focus method focuses the current gallery item, emulating an end-user hovering this item. The currently focused item can be obtained using the BaseGallery.FocusedItem property.

See Also