Back to Devexpress

WinExplorerViewOptionsImageLoad.CacheThumbnails Property

windowsforms-devexpress-dot-xtragrid-dot-winexplorer-dot-winexplorerviewoptionsimageload-91b3aef9.md

latest3.8 KB
Original Source

WinExplorerViewOptionsImageLoad.CacheThumbnails Property

Gets or sets whether or not asynchronously loaded item images should be cached.

Namespace : DevExpress.XtraGrid.WinExplorer

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
public bool CacheThumbnails { get; set; }
vb
<DefaultValue(True)>
Public Property CacheThumbnails As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if asynchronously loaded item images should be cached; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to CacheThumbnails
WinExplorerView

.OptionsImageLoad .CacheThumbnails

|

Remarks

Cached thumbnail images do not need to be re-loaded each time they are displayed. Once these images are loaded, they remain available when an end-user scrolls through the View or switches the View to another style (the WinExplorerViewOptionsView.Style property).

See Asynchronous Image Load in Data Grid for details.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CacheThumbnails property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

office-file-api-create-thumbnail-images-for-docx-xlsx-pdf-files/CS/Form1.cs#L39

csharp
{
    winExplorerView1.OptionsImageLoad.CacheThumbnails = true;
    winExplorerView1.OptionsImageLoad.LoadThumbnailImagesFromDataSource = false;

office-file-api-create-thumbnail-images-for-docx-xlsx-pdf-files/VB/Form1.vb#L33

vb
Private Sub InitViewSettings()
    winExplorerView1.OptionsImageLoad.CacheThumbnails = True
    winExplorerView1.OptionsImageLoad.LoadThumbnailImagesFromDataSource = False

See Also

Asynchronous Image Load in Data Grid

WinExplorerViewOptionsImageLoad Class

WinExplorerViewOptionsImageLoad Members

DevExpress.XtraGrid.WinExplorer Namespace