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.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
Declaration
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.