Navigation Mode in Windows Forms Tree Navigator
29 Apr 2021 / 1 minute to read
The Navigation Mode is used to navigate from parent to child items or child to parent items using Back button.
There are two modes of Navigation in TreeNavigator control, they are
- Default Mode
- Extended Mode
In this Default mode, the Selected item is displayed at the top of the TreeNavigator with the back button. This back button is used to navigate to the root from the current level.
The following code examples allow you to choose the navigation mode.
this.treeNavigator.NavigationMode = NavigationMode.Default;
Me.treeNavigator1.NavigationMode = NavigationMode.Default
In the Extended mode, header of each level from the root to current level stacked one by one at the top of the TreeNavigator. When you click on any of that header it take you to the corresponding level.
The following code examples allow you to choose the Navigation mode.
this.treeNavigator.NavigationMode = NavigationMode.Extended;
Me.TreeNavigator1.NavigationMode = NavigationMode.Extended