Skip to main content
A newer version of this page is available. .

PictureEdit.LoadAsync(String) Method

Loads the specified image, asynchronously.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

public void LoadAsync(
    string url
)

Parameters

Name Type Description
url String

The path for the image to display in the PictureEdit.

Remarks

Use this method to load large images or images on a network with slow connections. The method loads the specified image in a different thread, so it doesn’t affect the performance of the main thread. To get whether the load is in progress, see the PictureEdit.LoadInProgess property. After the image has been loaded, the PictureEdit.LoadCompleted/RepositoryItemPictureEdit.LoadCompleted event fires.

You can provide the following helper images for the PictureEdit control:

To cancel the asynchronous image load, call the PictureEdit.CancelLoadAsync method.

See Also