KB Article S31080
Visible to All Users

How to implement the capability to mark certain navigation items as favorite

Scenario
Application users can create shortcuts ("bookmarks" or "favorites") that help open certain navigation items quickly. As an example, see how Bookmarks are implemented in web web browsers.

Solutions
1. You can pin your favorite navigation items to the Quick Access Toolbar in WinForms Ribbon UI (XAF v20.1.3+).
Clipboard-File-1.png

2. In an XAF application, you can create a controller that will add the new action, which will process adding a new item into the Navigation Node of the Application Model. For instance, you can use the NavigationItemCreated event to add navigation items as described in the How to: Implement Custom Context Navigation article. Using the ShowNavigationItemController.RecreateNaviationItems method, you can update navigation items after adding a new item to favorites. Refer to the "%PROGRAMFILES%\DevExpress XX.X\Components\Sources\DevExpress.ExpressApp\DevExpress.ExpressApp\SystemModule\Dashboard\DashboardCreationWizard.cs" source file for some example code on how to manage custom navigation items.

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.