Back to Devexpress

TileViewOptionsImageLoad.LoadThumbnailImagesFromDataSource Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-tile-dot-tileviewoptionsimageload-438b7dec.md

latest4.2 KB
Original Source

TileViewOptionsImageLoad.LoadThumbnailImagesFromDataSource Property

Gets or sets whether tiles load their images from an image source when these images need to be loaded asynchronously.

Namespace : DevExpress.XtraGrid.Views.Tile

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

true if items load their images from an image source when these images need to be loaded asynchronously; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to LoadThumbnailImagesFromDataSource
TileView

.OptionsImageLoad .LoadThumbnailImagesFromDataSource

|

Remarks

If the TileViewOptionsImageLoad.AsyncLoad property is set to true , tile items support asynchronous image load. The LoadThumbnailImagesFromDataSource property specifies whether these images are loaded from the grid columns assigned through the TileView.ColumnSet section, or passed manually on the TileView.GetThumbnailImage event. See the Asynchronous Image Load in Data Grid topic to learn more.

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

winforms-grid-tileview-thumbnails-async-load/CS/TileView-ManualThumbs/Form1.cs#L30

csharp
tileView1.OptionsImageLoad.RandomShow = true;
tileView1.OptionsImageLoad.LoadThumbnailImagesFromDataSource = false;
// Enable async image load.

winforms-grid-tileview-thumbnails-async-load/VB/TileView-ManualThumbs/Form1.vb#L27

vb
tileView1.OptionsImageLoad.RandomShow = True
tileView1.OptionsImageLoad.LoadThumbnailImagesFromDataSource = False
' Enable async image load.

See Also

Asynchronous Image Load in Data Grid

TileViewOptionsImageLoad Class

TileViewOptionsImageLoad Members

DevExpress.XtraGrid.Views.Tile Namespace