Back to Devexpress

NavBarViewBase.ItemDisplayMode Property

wpf-devexpress-dot-xpf-dot-navbar-dot-navbarviewbase-acac1e47.md

latest2.6 KB
Original Source

NavBarViewBase.ItemDisplayMode Property

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

Namespace : DevExpress.Xpf.NavBar

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

NuGet Package : DevExpress.Wpf.NavBar

Declaration

csharp
public DisplayMode ItemDisplayMode { get; set; }
vb
Public Property ItemDisplayMode As DisplayMode

Property Value

TypeDescription
DisplayMode

A DisplayMode enumerator value specifying whether icon only, text only or both of these should be displayed for all NavBarItem within the current NavBarViewBase.

|

Available values:

NameDescription
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

Use the NavBarItem.DisplayMode to specify a display mode for individual NavBarItems. The ItemDisplayMode and NavBarGroup.ItemDisplayMode properties specify common display mode settings for all Items within a View or a Group respectively.

See Styling View Content Elements for more information.

See Also

DisplayMode

ItemDisplayMode

NavBarViewBase Class

NavBarViewBase Members

DevExpress.Xpf.NavBar Namespace