ImageLoader.UseSvgImages Property
Enables SVG images in WinForms applications.
Namespace: DevExpress.ExpressApp.Utils
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
Boolean |
|
Remarks
The Solution Wizard enables SVG images for all new XAF WinForms applications. For this purpose, the wizard generates new projects with the FrameworkSettings.DefaultSettingsCompatibilityMode property set to Latest
.
To use PNG images instead, set the UseSvgImages
property to false
.
If an existing XAF application was created in v18.1 or earlier, it uses PNG images. To replace them with new SVG images, do the following:
Check that your application uses new templates. The UseOldTemplates article demonstrates how to verify this. Old templates do not support SVG images.
Set the UseSvgImages property to true in the Program.cs(vb) file:
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the UseSvgImages 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.