# .NET MAUI Calendar Header Styling

The .NET MAUI Calendar component comes with built-in styling options that allow you to customize the appearance of its header.

## Styling the Header Border and Label

* To style the border around the Calendar header, use the `HeaderBorderStyle`(of type `Style` with target type `telerik:RadBorder`).

* To style the label in the header, use the `HeaderLabelStyle`(of type `Style` with target type `Label`).

The following example demonstrates how to apply custom styles to the header label and the border around the header:

**1.** Define the Calendar:

```XAML
<telerik:RadCalendar HeaderBorderStyle="{StaticResource HeaderBorderStyle}"
                     HeaderLabelStyle="{StaticResource HeaderLabelStyle}" />
```

**2.** Add the `HeaderBorderStyle` style:

```XAML
<Style TargetType="telerik:RadBorder" x:Key="HeaderBorderStyle">
    <Setter Property="BackgroundColor" Value="#198660C5" />
    <Setter Property="BorderThickness" Value="0" />
    <Setter Property="Padding" Value="{OnPlatform Default='16, 8', Android=0, WinUI='12, 4'}" />
</Style>
```

**3.** Add the `HeaderLabelStyle` style:

```XAML
<Style TargetType="Label" x:Key="HeaderLabelStyle">
    <Setter Property="TextColor" Value="#8660C5" />
    <Setter Property="FontSize" Value="20" />
    <Setter Property="FontAttributes" Value="Italic" />
</Style>
```

![Telerik UI for .NET MAUI Calendar with a custom lavender header background and italic August 2023 label](https://www.telerik.com/maui-ui/documentation/assets/19a3ca481346167bbf08f6e19be6e1a5/calendar-header-styling.png)

> For a runnable example that demonstrates how to style the Calendar header buttons, see the [SDKBrowser Demo Application](https://www.telerik.com/maui-ui/documentation/demos-and-sample-apps/sdkbrowser-app) and go to **Calendar > Styling**.

## Styling the Navigation Buttons

To style the navigation buttons in the header of the Calendar, use the following properties:

* `NavigateToPreviousViewButtonStyle`(of type `Style` with target type `Button`)—Specifies the style for the button in the header that navigates to the previous view.
* `NavigateToNextViewButtonStyle`(of type `Style` with target type `Button`)—Specifies the style for the button in the header that navigates to the next view.

The following example demonstrates how to apply custom styles to the navigation buttons:

**1.** Define the Calendar:

```XAML
<telerik:RadCalendar NavigateToPreviousViewButtonStyle="{StaticResource NavigateToPreviousViewButtonStyle}"
                     NavigateToNextViewButtonStyle="{StaticResource NavigateToNextViewButtonStyle}" />
```

**2.** Add the `NavigateToPreviousViewButtonStyle` style:

```XAML
<Style TargetType="Button" x:Key="NavigateToPreviousViewButtonStyle">
    <Setter Property="FontFamily" Value="TelerikFontExamples" />
    <Setter Property="FontSize" Value="20" />
    <Setter Property="Text" Value="&#xf137;" />
    <Setter Property="TextColor" Value="#FFAC3E" />
</Style>
```

**3.** Add the `NavigateToNextViewButtonStyle` style:

![Telerik UI for .NET MAUI Calendar with orange circular previous and next navigation buttons](https://www.telerik.com/maui-ui/documentation/assets/19c772b504b4a5d2cb11c3d01d3241ec/calendar-headerbuttons-styling.png)

> For a runnable example that demonstrates how to style the Calendar header buttons, see the [SDKBrowser Demo Application](https://www.telerik.com/maui-ui/documentation/demos-and-sample-apps/sdkbrowser-app) and go to **Calendar > Styling**.

## See Also

* [Day Styling](https://www.telerik.com/maui-ui/documentation/controls/calendar/styling/day-styling)
* [Decade Styling](https://www.telerik.com/maui-ui/documentation/controls/calendar/styling/decade-styling)
* [Month Styling](https://www.telerik.com/maui-ui/documentation/controls/calendar/styling/month-styling)
* [Year Styling](https://www.telerik.com/maui-ui/documentation/controls/calendar/styling/year-styling)
