Skip to main content

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.1.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