# .NET MAUI Calendar Navigation

You can navigate between the different views of the <a href="https://www.telerik.com/maui-ui/calendar" target="_blank">.NET MAUI Calendar</a> programmatically or let the user change the views from the UI.

## Navigating through Buttons

The Calendar header has two buttons (Previous and Next) that allow the user to navigate in the current view. For example, in the Month view, the Previous button navigates to the previous month, and the Next button navigates to the next month.

![Telerik UI for .NET MAUI Calendar navigating between months with previous and next header buttons](https://www.telerik.com/maui-ui/documentation/assets/189d442d2aaa8387b0f7f65b08778f96/calendar-navigation.gif)

## Navigating to the Parent View

The user can interact with the UI and navigate to the parent view by tapping or clicking the header label of the Calendar.

![Telerik UI for .NET MAUI Calendar navigating to a parent display mode by tapping the header](https://www.telerik.com/maui-ui/documentation/assets/03c688b8bea8407894384e913a6b9d9f/calendar-change-display-mode.gif)

## Restricting the Navigation Depth

To restrict the navigation depth to specific parent or child views, use the following properties:

* `MinDisplayMode`(`Telerik.Maui.Controls.Calendar.CalendarDisplayMode`)—Specifies the minimum display mode of the Calendar.
* `MaxDisplayMode`(`Telerik.Maui.Controls.Calendar.CalendarDisplayMode`)—Specifies the maximum display mode of the Calendar.

## Setting the Scroll Direction

The user can scroll between the [display modes](https://www.telerik.com/maui-ui/documentation/controls/calendar/display-modes) of the Calendar horizontally or vertically. To specify the scroll direction, use the `NavigationDirection` property.

* `NavigationDirection`(enum of type `Telerik.Maui.Orientation`)—Specifies the scroll direction in the view mode of the Calendar. The available options are `Horizontal` (default) and `Vertical`.

```XAML
<telerik:RadCalendar NavigationDirection="Vertical" />
```

![Telerik UI for .NET MAUI Calendar scrolling between month views in the configured navigation direction](https://www.telerik.com/maui-ui/documentation/assets/3387d0f57daf6e821b858de4f33df854/calendar-scrolling.gif)

> For a runnable example with the navigation of the Calendar, see the [SDKBrowser Demo Application](https://www.telerik.com/maui-ui/documentation/demos-and-sample-apps/sdkbrowser-app) and go to the **Calendar > Features** category.

## Changing the Interaction Mode

Use the `InteractionMode`(enum of type `Telerik.Maui.Controls.Calendar.CalendarInteractionMode`) property of the Calendar to determine whether the user can navigate in the current view through gestures. The available options are `None` and `Pan` (default):

* When the `InteractionMode` is `None`, the users can navigate to next or previous view in the current display mode by using the navigation buttons.
* When the `InteractionMode` is `Pan`, the users can navigate through gestures that target the content area of the Calendar component.

> For a runnable example with the Calendar interaction mode, see the [SDKBrowser Demo Application](https://www.telerik.com/maui-ui/documentation/demos-and-sample-apps/sdkbrowser-app) and go to the **Calendar > Features** category.

![Telerik UI for .NET MAUI Calendar using Pan interaction mode to navigate the current view with gestures](https://www.telerik.com/maui-ui/documentation/assets/0955e4d71726a30355b8211ac7a521cc/calendar-interaction-mode.gif)

## See Also

* [Navigation Between the Different Views](https://www.telerik.com/maui-ui/documentation/controls/calendar/navigation)
* [Specify the Formatting](https://www.telerik.com/maui-ui/documentation/controls/calendar/formatting)
* [Selection modes](https://www.telerik.com/maui-ui/documentation/controls/calendar/selection)
* [Use the exposed Commands](https://www.telerik.com/maui-ui/documentation/controls/calendar/commands)
* [Define Templates](https://www.telerik.com/maui-ui/documentation/controls/calendar/templates)
* [Calendar Header Styling](https://www.telerik.com/maui-ui/documentation/controls/calendar/styling/header-styling)
