BadgeProperties.StretchImage Property

Gets or sets whether all badges should stretch their images according to the displayed text.

Namespace: DevExpress.Utils.VisualEffects

Assembly: DevExpress.Utils.v20.1.dll

Declaration

[DefaultValue(true)]
[DXCategory("Appearance")]
public bool StretchImage { get; set; }
<DefaultValue(True)>
<DXCategory("Appearance")>
Public Property StretchImage As Boolean

Property Value

Type Default Description
Boolean

true

true, if all badges should stretch their images according to the displayed text; otherwise, false.

Remarks

If the StretchImage property equals true, the badge image is stretched to fit badge text. The following figure illustrates a badge with a default image (circle) and different StretchImage settings.

AdornerManager - Badge Stretch Image

If set, BadgeDefaultProperties.StretchImage properties of individual badges override the global StretchImage property setting.

See Also