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

OfficeNavigationBar.ViewMode Property

Gets or sets the mode that specifies how to display items and highlight the active item.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(OfficeNavigationBarViewMode.Default)]
[DXCategory("Appearance")]
public OfficeNavigationBarViewMode ViewMode { get; set; }

#Property Value

Type Default Description
DevExpress.XtraBars.Navigation.OfficeNavigationBarViewMode Default

An DevExpress.XtraBars.Navigation.OfficeNavigationBarViewMode enumeration value that specifies how to display items and highlight the active item.

#Remarks

Use the ViewMode property to specify how the Office Navigation Bar is displayed:

  • Default — the same as Office;
  • Office — the Office 2013-inspired view that supports borderless buttons;

    OfficeNavigationBar_Office

  • Tab — the Office 2019-inspired view that supports animated underlines highlighting the active item;

    OfficeNavigationBar_Tab

    The OfficeNavigationBar.OptionsTabView property provides access to tab view options.

    The customization button (see OfficeNavigationBar.CustomizationButtonVisibility) is hidden in this mode by default.

  • Skinned — the active item is highlighted using a background color that depends on the current skin.

    OfficeNavigationBar_Skinned

See Also