ShowNavigationItemController Class
Represents a WindowController descendant that contains the ShowNavigationItem Action.
Namespace: DevExpress.ExpressApp.SystemModule
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Remarks
The ShowNavigationItemController is a part of the Navigation System. This Controller is intended for presenting the ShowNavigationItem Action.
In a Windows Forms Application:
In an ASP.NET Web Forms application:
For details on the ShowNavigationItem Action, refer to the description of the ShowNavigationItemController.ShowNavigationItemAction property that provides access to this Action.
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.
Note
This Controller does not have UI-specific descendants. If you require, you can inherit from this Controller to implement a UI-specific functionality.
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.