Skip to main content

XtraForm.IconOptions Property

Provides access to image settings that allow you to assign raster and vector images to XtraForms (instead of traditional .ico images).

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v23.1.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core


public FormIconOptions IconOptions { get; }

Property Value

Type Description

Provides access to form icon-related settings.


Use this property to set up vector or raster image for this form instance.

this.IconOptions.SvgImage = Properties.Resources.barcodeImage;

Note that images assigned through the IconOptions object (IconOptions.Image, IconOptions.SvgImage, IconOptions.ImageURI) have priority over the standard Icon property.

A forms icon size is fixed, you cannot use the IconOptions.SvgImageSize property to change this size.

If you need to set up the same image for all DevExpress forms in your application, use the static FormIconOptions.Default property.

using DevExpress.XtraEditors;

FormIconOptions.Default.SvgImage = Properties.Resources.avocado;


Use the IconOptions.Image and IconOptions.LargeImage properties to assign raster images with different resolutions to the XtraForm (to avoid blurring). The Image property specifies the image displayed in the title bar. The LargeImage property specifies the image displayed in the taskbar.

See Also