Skip to main content

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.v23.2.dll

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

Declaration

[DefaultValue(true)]
[DXCategory("Appearance")]
public bool StretchImage { get; set; }

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