Skip to main content

BaseGallery.ScrollTo(GalleryItemGroup, Boolean) Method

Scrolls the gallery (with or without an animation effect) making the specified gallery group visible.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public virtual void ScrollTo(
    GalleryItemGroup group,
    bool bAnimated


Name Type Description
group GalleryItemGroup

A GalleryItemGroup object to be made visible.

bAnimated Boolean

true to use an animation effect when scrolling; otherwise, false.


This method calls another ScrollTo method overload with the groupAlignment parameter set to VertAlignment.Default.

When a scrolling animation effect is used, you can choose between the standard and smooth scroll modes via the BaseGallery.ScrollMode property. In addition, you can customize the scroll speed via the BaseGallery.ScrollSpeed property.

See Also