# 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.

> caption Navigation options dialog

![WPF Navigation options dialog](https://www.telerik.com/products/wpf/documentation/assets/f9531bcea7d62afce117ba49b07f6cdf/officenavigationbar-navigation-options-0.png)

## 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**

```C#
ICommand resetCommand = radOfficeNavigationBar.OfficeNavigationBarDialogViewModel.ResetCommand;
resetCommand.Execute(null);
```

```VB.NET
Dim resetCommand As ICommand = radOfficeNavigationBar.OfficeNavigationBarDialogViewModel.ResetCommand
resetCommand.Execute(Nothing)
```

## See Also

* [Custom Content](https://www.telerik.com/products/wpf/documentation/controls/radofficenavigationbar/custom-content)
* [Overflow Menu](https://www.telerik.com/products/wpf/documentation/controls/radofficenavigationbar/overflow-menu)
* [Peek Popup](https://www.telerik.com/products/wpf/documentation/controls/radofficenavigationbar/peek-popup)
