Back to Devexpress

WinExplorerViewOptionsImageLoad.AsyncLoad Property

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

latest3.8 KB
Original Source

WinExplorerViewOptionsImageLoad.AsyncLoad Property

Gets or sets whether images for View items should be loaded asynchronously.

Namespace : DevExpress.XtraGrid.WinExplorer

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(false)]
public bool AsyncLoad { get; set; }
vb
<DefaultValue(False)>
Public Property AsyncLoad As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if images for View items should be loaded asynchronously; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AsyncLoad
WinExplorerView

.OptionsImageLoad .AsyncLoad

|

Remarks

You can set the AsyncLoad property to true to load item images asynchronously. This allows you to avoid freezes at the application start-up, which are possible if item images are sufficiently heavy. See the Asynchronous Image Load in Data Grid topic for details.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AsyncLoad 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#L41

csharp
winExplorerView1.OptionsImageLoad.LoadThumbnailImagesFromDataSource = false;
winExplorerView1.OptionsImageLoad.AsyncLoad = true;
winExplorerView1.OptionsView.Style = DevExpress.XtraGrid.Views.WinExplorer.WinExplorerViewStyle.ExtraLarge;

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

vb
winExplorerView1.OptionsImageLoad.LoadThumbnailImagesFromDataSource = False
winExplorerView1.OptionsImageLoad.AsyncLoad = True
winExplorerView1.OptionsView.Style = DevExpress.XtraGrid.Views.WinExplorer.WinExplorerViewStyle.ExtraLarge

See Also

Asynchronous Image Load in Data Grid

WinExplorerViewOptionsImageLoad Class

WinExplorerViewOptionsImageLoad Members

DevExpress.XtraGrid.WinExplorer Namespace