Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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.ImageOptions.StretchImage properties of individual badges override the global StretchImage setting.

See Also