Skip to main content
.NET 6.0+

ShowNavigationItemController.GetStartupNavigationItem() Method

Returns the ShowNavigationItem Action’s item to be chosen when starting up the application.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public virtual ChoiceActionItem GetStartupNavigationItem()

Returns

Type Description
ChoiceActionItem

A ChoiceActionItem object representing the item in the navigation control to be chosen when loading the main window.

Remarks

This method returns the item which is set for the NavigationItems node’s IModelRootNavigationItems.StartupNavigationItem property. If nothing is set for this property, the first visible and enabled item from the first first-level navigation item of the ShowNavigationItem Action’s ChoiceActionBase.Items collection is returned.

Note

This method is used by the WinShowStartupNavigationItemController and WebShowStartupNavigationItemController to get a navigation item and emulate clicking it.

See Also