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

GalleryOptionsImageLoad.DesiredThumbnailSize Property

Gets or sets the desired size of thumbnails created by the BaseGallery.GetThumbnailImage event.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public Size DesiredThumbnailSize { get; set; }

#Property Value

Type Description
Size

A Size structure that is the size of thumbnails created by the BaseGallery.GetThumbnailImage event.

#Property Paths

You can access this nested property as listed below:

Object Type Path to DesiredThumbnailSize
BaseGallery
.OptionsImageLoad .DesiredThumbnailSize

#Remarks

The DesiredThumbnailSize property specifies the desired size of thumbnails produced by the ThumbnailImageEventArgs.CreateThumbnailImage method when handling the BaseGallery.GetThumbnailImage event. You can use this method overload. It takes the Size structure as its second parameter to override the DesiredThumbnailSize setting for an individual thumbnail. See the BaseGallery.GetThumbnailImage topic for details.

Important

The DesiredThumbnailSize property does not explicitly set the thumbnail size. Instead, the thumbnail will zoom in or out depending on this custom size, but it will always keep the original ratio of the source image.

See Also