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

ImageSettings.Stretch Property

Gets or sets a value that specifies how an image should be stretched to fill the available space. This is a dependency property.

Namespace: DevExpress.Xpf.NavBar

Assembly: DevExpress.Xpf.NavBar.v24.2.dll

NuGet Package: DevExpress.Wpf.NavBar

#Declaration

public Stretch Stretch { get; set; }

#Property Value

Type Description
Stretch

One of the Stretch enumeration values.

#Property Paths

You can access this nested property as listed below:

Object Type Path to Stretch
ImageSettings
.GroupDefault .Stretch
ImageSettings
.ItemDefault .Stretch
NavBarGroup
NavBarGroup
.ImageSettings .Stretch
NavBarGroup
.ItemImageSettings .Stretch
NavBarItem
NavBarItem
.ImageSettings .Stretch
NavBarItemControl
.ImageSettings .Stretch
NavBarViewBase
.GroupImageSettings .Stretch
NavBarViewBase
.ItemImageSettings .Stretch

#Remarks

If the size specified via the ImageSettings.Width and ImageSettings.Height properties differs from an image’s physical size, the Stretch and ImageSettings.StretchDirection properties can be used to define the manner in which the image should be stretched.

See Also