Skip to main content
A newer version of this page is available. .

SvgIcon.AutoSize Property

Gets or sets whether the size of the source SVG image is automatically adjusted to the container dimensions. This is a dependency property.

Namespace: DevExpress.UI.Xaml

Assembly: DevExpress.UI.Xaml.v19.2.dll

Declaration

public bool AutoSize { get; set; }

Property Value

Type Description
Boolean

true to automatically adjust the size of the image; otherwise, false. By default, true.

Remarks

If the AutoSize property is set to false, the values of the Width and Height properties are used to set the size of the image. If these properties are not set, the values of the height and width properties defined in the SVG source file are used instead.

Note

If the AutoSize property is set to false and the SvgIcon.IconStretch property is set to a value other than None, the resulting image may appear distorted (e.g., pixelated) due to improper scaling. To prevent it, specify the values of the Width and Height properties.

See Also