Skip to main content
A newer version of this page is available. .

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.NavBar, DevExpress.Wpf.Navigation

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
ExplorerBarView
.ItemImageSettings .Stretch
NavBarGroup
NavBarItem
.ImageSettings .Stretch
NavBarItemControl
.ImageSettings .Stretch
NavBarViewBase
.ItemImageSettings .Stretch
NavigationPaneView
.ItemImageSettings .Stretch
SideBarView
.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