Back to Devexpress

TileViewOptionsImageLoad.RandomShow Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-tile-dot-tileviewoptionsimageload-b4e75bd2.md

latest3.6 KB
Original Source

TileViewOptionsImageLoad.RandomShow Property

Gets or sets whether tile images should be loaded in random order.

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 RandomShow { get; set; }
vb
<DefaultValue(True)>
Public Property RandomShow As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if tile images should be loaded in random order; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to RandomShow
TileView

.OptionsImageLoad .RandomShow

|

Remarks

During an asynchronous thumbnail image load, you can specify whether these images should be loaded in random order, or in the same order as their parent items appear. To select the desired behavior, use the RandomShow property.

Refer to 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 RandomShow 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#L29

csharp
tileView1.ColumnSet.BackgroundImageColumn = colName;
tileView1.OptionsImageLoad.RandomShow = true;
tileView1.OptionsImageLoad.LoadThumbnailImagesFromDataSource = false;

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

vb
tileView1.ColumnSet.BackgroundImageColumn = colName
tileView1.OptionsImageLoad.RandomShow = True
tileView1.OptionsImageLoad.LoadThumbnailImagesFromDataSource = False

See Also

Asynchronous Image Load in Data Grid

TileViewOptionsImageLoad Class

TileViewOptionsImageLoad Members

DevExpress.XtraGrid.Views.Tile Namespace