Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PictureEdit.LoadAsync(String) Method

SECURITY NOTE

Downloading images passed as URLs to the LoadAsync method may create security issues. Review the following help topic and learn how to spot, analyze, and prohibit unwanted download requests:

Suppress Control Requests to Download Data from External URLs

Loads the specified image, asynchronously.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public Task LoadAsync(
    string localPathOrUriString
)

#Parameters

Name Type Description
localPathOrUriString String

The path for the image to display in the PictureEdit.

#Returns

Type Description
Task

The task.

#Remarks

Use the LoadAsync method to load large images or images on a network with slow connections. The LoadAsync method loads the specified image in a different thread.

The LoadInProgress property indicates whether the load operation is in progress. After the image has been loaded, the Picture Editor raises the LoadCompleted event.

Use the following properties to specify helper images:

Use the CancelLoadAsync() method to cancel the asynchronous image load.

See Also