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

NavBarItem.DisplayMode Property

Gets or sets whether icon only, text only or both of these should be displayed within the current NavBarItem.

Namespace: DevExpress.Xpf.NavBar

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

NuGet Package: DevExpress.Wpf.NavBar

#Declaration

public DisplayMode DisplayMode { get; set; }

#Property Value

Type Description
DisplayMode

A DisplayMode enumerator value that specifies whether icon only, text only or both of these should be displayed within the current NavBarItem.

Available values:

Name Description
ImageAndText

Both text and an image are used to represent the content of the related content element (an item or group header).

Image

Only an image is used to represent the content of the related content element (an item or group header); the text is not displayed.

Text

Only text is used to represent the content of the related content element (an item or group header); the image is not displayed, if any.

Default

Acts identically to the ImageAndText value.

#Remarks

The DisplayMode property affects individual NavBarItems. To specify a display mode for all Items within a Group or a View, use the NavBarGroup.ItemDisplayMode or NavBarViewBase.ItemDisplayMode property respectively.

See Styling View Content Elements for more information.

See Also