Back to Devexpress

IModelRootNavigationItems.NavigationStyle Property

expressappframework-devexpress-dot-expressapp-dot-systemmodule-dot-imodelrootnavigationitems.md

latest2.8 KB
Original Source

IModelRootNavigationItems.NavigationStyle Property

Specifies the control to be used as the navigation control.

Namespace : DevExpress.ExpressApp.SystemModule

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[DefaultValue(NavigationStyle.NavBar)]
NavigationStyle NavigationStyle { get; set; }
vb
<DefaultValue(NavigationStyle.NavBar)>
Property NavigationStyle As NavigationStyle

Property Value

TypeDefaultDescription
NavigationStyleNavBar

A NavigationStyle enumeration value that specifies which control to use as the navigation control.

|

Available values:

NameDescription
TreeList

Specifies that a treelist control is used as the navigation control. In this instance, the displayed tree is identical to the navigation structure.

| | NavBar |

Specifies that a navbar control is used as a navigation control. In this instance, the first-level child nodes of the IModelRootNavigationItems node correspond to the navbar control’s groups. These groups cannot be used to navigate to Views. The groups only serve as containers for other child nodes. In XAF Blazor applications, the NavBar option is equivalent to the Accordion option.

| | Accordion |

Specifies that an accordion control is used as the navigation control. In this instance, all nodes except nodes of the last nesting level present accordion groups. These groups are containers for other child nodes. You cannot use these groups to navigate to Views.

|

Remarks

In the Model Editor, XAF filters the available NavigationStyle property’s values by platform.

PlatformValue
ASP.NET Core BlazorTreeList, Accordion
Windows FormsNavBar, TreeList, Accordion

See Also

IModelRootNavigationItems Interface

IModelRootNavigationItems Members

DevExpress.ExpressApp.SystemModule Namespace