Skip to main content

ShowNavigationItemController Class

A WindowController descendant that contains the ShowNavigationItem Action.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v25.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public class ShowNavigationItemController :
    WindowController,
    IModelExtender,
    IShowViewParametersCustomizer

Remarks

The ShowNavigationItemController is a part of the Navigation System. This Controller displays the ShowNavigationItem Action.

ASP.NET Core Blazor
XAF ASP.NET Core Blazor ShowNavigationItem Action, DevExpress
Windows Forms
XAF Windows Forms ShowNavigationItem Action, DevExpress

For details on the ShowNavigationItem Action, refer to the following topic: ShowNavigationItemController.ShowNavigationItemAction.

To customize the default behavior of the ShowNavigationItem Action, you can inherit from this Controller or subscribe to its events. In addition, you can access the Action to modify its behavior.

If you need to inherit from the ShowNavigationItemController, the following protected virtual methods are available for overriding:

Method

When is it called?

Description

HasRights

Invoked as a result of calling the InitializeItems method when populating the Navigation‘s Items collection.

Determines whether the application’s Security System grants permission to read the object(s) of the passed item’s View. If a Views | View node describing the item’s View cannot be found, this method returns true. The items for which this method returns false, are disabled by the ShowNavigationItemController.SynchronizeItemsWithSecurity method.

InitializeItems

Called after the ShowNavigationItemController is activated.

OnItemsInitialized

Called after the ShowNavigationItem Action’s Items collection is populated via the InitializeItems method.

Raises the ShowNavigationItemController.ItemsInitialized event.

ShowNavigationItem

Called by the ShowNavigationItem Action’s SingleChoiceAction.Execute event handler.

Public members are described individually in the documentation.

To ascertain whether the Controller is active, use the Controller.Active property (see How to: Detect a Lookup List View in Code). If you need to know the reason for its deactivation or activation at runtime, use the DiagnosticInfo Action.

Information on the ShowNavigationItemController and its ShowNavigationItem Action is available in the Application Model‘s ActionDesign node. To access it, use the Model Editor.

Inheritance

See Also