# Orientation

## Content



The Calendar appears in default horizontal orientation. However, you can change the orientation of the calendar to Vertical by using the [Orientation](/componentone/api/xamarin/online-forms/dotnet-api/C1.Xamarin.Forms.Calendar/C1.Xamarin.Forms.Calendar.C1Calendar.Orientation.html) property. The [C1Calendar](/componentone/api/xamarin/online-forms/dotnet-api/C1.Xamarin.Forms.Calendar/C1.Xamarin.Forms.Calendar.C1Calendar.html) class provides CalendarOrientation enumeration that can be set to set Vertical orientation as shown in the code below.

The following code example demonstrates how to set the orientation in C# and XAML. This code example uses the sample created in the [Quick start](/componentone/docs/xamarin/online-forms/controls/CalendarOverview/CalendarQuickStart) section.

#### In Code

```csharp
//Setting the Orientation
calendar.Orientation = CalendarOrientation.Vertical;
```

#### In XAML

```xml
<Grid>
     <c1:C1Calendar x:Name="calendar" Orientation="Vertical"/>
  </Grid>
```