New to Telerik UI for WPF? Download free 30-day trial

Navigation Options

RadOfficeNavigationBar allows you to control the maximum number of visible items, their display order, as well as enabling/disabling the compact view mode. This is done by using the navigation options dialog. To display this window, select the options button that is displayed on the right of the RadOfficeNavigationBar items.

Navigation options dialog

WPF Navigation options dialog

OfficeNavigationBarDialogViewModel

The RadOfficeNavigationBar controls exposes the OfficeNavigationBarDialogViewModel property. Using this property, you can control the behavior of the navigation options dialog via code. The property is of the type OfficeNavigationBarDialogViewModel and exposes the following properties:

  • MoveItemUpCommand—Gets or sets a command that moves the SelectedItem object upwards in the OfficeNavigationBarDialogListBox.
  • MoveItemDownCommand—Gets or sets a command that moves the SelectedItem object downwards in the OfficeNavigationBarDialogListBox.
  • IncreaseItemsMaxCountCommand—Gets or sets a command that increases the maximum count of visible items.
  • DecreaseItemsMaxCountCommand—Gets or sets a command that decreases the maximum count of visible items.
  • ResetCommand—Gets or sets a command that resets the changes made in the navigation options dialog.
  • SelectedItem—Gets or sets the SelectedItem of the OfficeNavigationBarDialogListBox.
  • ItemsMaxCount—Gets or sets the current maximum items that will be displayed in the RadOfficeNavigationBar control.
  • IsInCompactMode—Gets or sets a boolean value indicating whether the RadOfficeNavigationBar will be in Compact mode.
  • IsCompactModeCheckBoxVisible—Gets or sets a boolean value indicating whether the CheckBox for switching to Compact mode will be visible.
  • Items—Gets or sets the items displayed in the OfficeNavigationBarDialogListBox.

Executing the Reset command

ICommand resetCommand = radOfficeNavigationBar.OfficeNavigationBarDialogViewModel.ResetCommand; 
resetCommand.Execute(null); 
Dim resetCommand As ICommand = radOfficeNavigationBar.OfficeNavigationBarDialogViewModel.ResetCommand 
resetCommand.Execute(Nothing) 

See Also

In this article