Back to Devexpress

NavBarGroup.DisplayMode Property

wpf-devexpress-dot-xpf-dot-navbar-dot-navbargroup-b3fc412d.md

latest2.6 KB
Original Source

NavBarGroup.DisplayMode Property

Gets or sets whether the current NavBarGroup should display its text, icon, or both icon and text. This is a dependency property.

Namespace : DevExpress.Xpf.NavBar

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

NuGet Package : DevExpress.Wpf.NavBar

Declaration

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

Property Value

TypeDescription
DisplayMode

A DisplayMode enumerator value that specifies whether the current NavBarGroup should display its text, icon, or both icon and text.

|

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

You can also use the NavBarViewBase.GroupDisplayMode property to specify settings common to all NavBarGroups within a View.

To specify a display mode for NavBarItems within the current NavBarGroup, use the NavBarGroup.ItemDisplayMode property instead.

See Styling View Content Elements for more information.

See Also

GroupDisplayMode

ItemDisplayMode

NavBarGroup Class

NavBarGroup Members

DevExpress.Xpf.NavBar Namespace