Skip to main content

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.1.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