# Orientation

You can enable orientation in the Calendar control in both horizontal and vertical directions. Read this topic to see how you can set the orientation via code.

## Content



By default, the navigation orientation of the Calendar control is in horizontal direction. However, you can change the navigation orientation of the calendar to Vertical direction by using [Orientation](/componentone/api/wpf/online-calendar/dotnet-api/C1.WPF.Calendar/C1.WPF.Calendar.C1Calendar.Orientation.html) property of the [C1Calendar](/componentone/api/wpf/online-calendar/dotnet-api/C1.WPF.Calendar/C1.WPF.Calendar.C1Calendar.html) class.

![Calendar with vertical orientation](https://cdn.mescius.io/document-site-files/images/aa932af9-ea21-4e7f-9114-1f57bdf10e97/images/orientation-vertical.gif)

As you can observe from the GIF above, the navigation buttons help the user to navigate the calendar up and down.

The following code demonstrates how to set the vertical navigation orientation using the Orientation property:

```xml
<c1:C1Calendar x:Name="calendar" Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top">
```