.NET Core 3.0+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

ImageLoader.Instance Property

Provides access to the ImageLoader instance.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v20.1.dll


public static ImageLoader Instance { get; }
Public Shared ReadOnly Property Instance As ImageLoader

Property Value

Type Description

An ImageLoader object representing the ImageLoader instance.


ImageLoader is a singleton. So, only a single instance of the ImageLoader class can be instantiated in an application. To invoke ImageLoader's instance methods, you need to use the ImageLoader instance, accessible via the Instance property. The following code snippet illustrates this. The code retrieves the BO_Customer image using the ImageLoader.GetImageInfo method.

using System.Drawing;
Image customer = ImageLoader.Instance.GetImageInfo("BO_Customer").Image;
See Also