New to Telerik UI for .NET MAUIStart a free 30-day trial

Setting Semantic Properties for Navigation Buttons in Calendar

Updated on Sep 30, 2025

Environment

VersionProductAuthor
11.1.0Calendar for .NET MAUIDobrinka Yordanova

Description

I need to set semantic properties, specifically the SemanticProperties.Description, for the navigation buttons in the UI for .NET MAUI Calendar control to meet accessibility standards.

This knowledge base article also answers the following questions:

  • How do I add accessibility descriptions for calendar navigation buttons?
  • How can I set SemanticProperties for the Previous and Next navigation buttons in a calendar?
  • What is the method to define descriptions for navigation buttons in the .NET MAUI Calendar?

Solution

To set the SemanticProperties.Description for the navigation buttons, use the NavigateToPreviousViewButtonStyle and NavigateToNextViewButtonStyle properties of the Calendar control.

  1. Define styles for the navigation buttons in XAML.
xml
<Style TargetType="Button" x:Key="NavigateToPreviousViewButtonStyle">
    <Setter Property="SemanticProperties.Description" Value="Navigate to previous view" />
</Style>
<Style TargetType="Button" x:Key="NavigateToNextViewButtonStyle">
    <Setter Property="SemanticProperties.Description" Value="Navigate to next view" />
</Style>
  1. Assign the styles to the Calendar control.
xml
<telerik:RadCalendar x:Name="calendar"
                        NavigateToPreviousViewButtonStyle="{StaticResource NavigateToPreviousViewButtonStyle}"
                        NavigateToNextViewButtonStyle="{StaticResource NavigateToNextViewButtonStyle}" />

See Also