We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize the header of the SfCalendar?

Platform: UWP |
Control: SfCalendar |
Published Date: March 10, 2016 |
Last Revised Date: March 10, 2016 |
Product Version: 13.4.0.53

You can customize the header of the SfCalendar by using the HeaderTemplate property. This article explains how to customize the header of the SfCalendar to display only the month.

Customizing the header of the SfCalendar:

  Define the converter as a Resource. Create a TextBlock and set it as the HeaderTemplate of the SfCalendar. Bind the DisplayDate of the SfCalendar to the Text property of the TextBlock with reference to the converter.

 

 

 Create a UWP application and add the SfCalendar to it. Define a converter class with reference to the IValueConverter interface. In the Convert method, return the date in the month format.

 

 

 

 

The following screenshot displays the output of the above code.

 

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon