Back to Devexpress

Add an Item to the Navigation Control

expressappframework-402131-getting-started-in-depth-tutorial-blazor-customize-navigation-between-views-add-an-item-to-navigation-control.md

latest1.7 KB
Original Source

Add an Item to the Navigation Control

  • Feb 20, 2023
  • 2 minutes to read

This lesson explains how to add the Notes item to the navigation control. When clicked, this Notes item is used to display a List View for the Note business class that you added in the previous lesson: Add an Action that Displays a Pop-Up Window.

Step-by-Step Instructions

  1. Expand the MySolution.Module project and double-click the Model.DesignedDiffs.xafml file to invoke the Model Editor.

  2. In the tree, navigate to the NavigationItems | Items | Default | Items node. The structure of the NavigationItems node and its child nodes corresponds to the structure of the navigation control. To add a child item to a navigation item, right-click the Items node and select Add… | NavigationItem in the context menu:

  3. Specify the following properties for the new item:

  4. Run the application. You can see the Notes navigation item in the navigation control. Select this item to see the List View of the Note entity class.

Next Lesson

Rename and Rearrange Navigation Items

See Also

DefaultClassOptionsAttribute

NavigationItemAttribute