Skip to main content
.NET Framework 4.6.2+

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

ImageLoader.GetDialogImageInfo(String, Boolean) Method

Supplies metadata on an image used in dialog windows.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public ImageInfo GetDialogImageInfo(
    string imageName,
    bool isEnabled
)

#Parameters

Name Type Description
imageName String

A string holding the name of the required image. This parameter is case-insensitive.

isEnabled Boolean

true, if the retrieved image is converted to grayscale; otherwise, false.

#Returns

Type Description
ImageInfo

An ImageInfo object supplying metadata on an image used in dialog windows.

#Remarks

To customize metadata returned by the GetDialogImageInfo method, handle the ImageLoader.CustomizeImageInfo event.

For general guidelines on using images in an XAF application, refer to the Add and Override Images help topic.

The following code snippet illustrates use of the GetDialogImageInfo method. The code retrieves the State_Validation_Valid dialog image.

using System.Drawing;
//...
Image image = ImageLoader.Instance.GetDialogImageInfo("State_Validation_Valid", false").Image;
See Also