windowsforms-devexpress-dot-xtragrid-dot-winexplorer-dot-winexplorerviewoptionsimageload-6305ca82.md
Gets or sets the desired size of thumbnail images, created during Asynchronous Image Loading.
Namespace : DevExpress.XtraGrid.WinExplorer
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
public Size DesiredThumbnailSize { get; set; }
Public Property DesiredThumbnailSize As Size
| Type | Description |
|---|---|
| Size |
A Size structure that is the desired thumbnail image size. The default value is Size.Empty , which is equivalent to 256x256.
|
You can access this nested property as listed below:
| Object Type | Path to DesiredThumbnailSize |
|---|---|
| WinExplorerView |
.OptionsImageLoad .DesiredThumbnailSize
|
In Asynchronous Image Load Mode, the DesiredThumbnailSize property specifies the size of automatically generated thumbnails and thumbnails generated by the ThumbnailImageEventArgs.CreateThumbnailImage method. When displaying the generated thumbnails, they are zoomed in or out to fit the display rectangle.
Note
The image size depends on the currently applied style (see WinExplorerViewOptionsView.Style):
You can customize the image sizes by using the WinExplorerView.OptionsViewStyles.<ViewStyle>.ImageSize property (see WinExplorerViewStyleOptions.ImageSize).
Since thumbnails are always zoomed in/out up to the current image size, setting the DesiredThumbnailSize property to a greater value has no effect.
Setting DesiredThumbnailSize property to a value less than the image size in particular styles, leads to blurry images in those styles.
See Also
Asynchronous Image Load in Data Grid
WinExplorerViewOptionsImageLoad Class