Articles in this section
Category / Section

How to customize the time label of WinUI Scheduler (Calendar)?

3 mins read

The Scheduler allows customization of the time label text of the schedule views. The time label text can be customized for DayView, WeekView, WorkWeekView, and TimelineView by using the TimeRulerFormat property of the TimelineViewSettings and the DaysViewSettings in the Scheduler.

XAML

Bind the appointments to a schedule using the Scheduler.ItemsSource property.

<scheduler:SfScheduler x:Name="scheduler"
                ViewType="TimelineWeek">
</scheduler:SfScheduler>

C#

Initialize an object for the TimelineViewSettings and append the required string value with the time slot value and assign it to the TimeRulerFormat property of the TimelineViewSettings.

TimelineViewSettings timelineViewSettings = new TimelineViewSettings();
timelineViewSettings.StartHour = 0;
timelineViewSettings.EndHour = 23;
timelineViewSettings.TimeRulerFormat = string.Format("'Room'") + " " + "HH";
this.AssociatedObject.TimelineViewSettings = timelineViewSettings;

C#

Initialize an object for the DaysViewSettings and append the required string value with the time slot value and assign it to the TimeRulerFormat property of the DaysViewSettings.

DaysViewSettings daysViewSettings = new DaysViewSettings();
daysViewSettings.StartHour = 0;
daysViewSettings.EndHour = 23;
daysViewSettings.TimeRulerFormat = string.Format("'Room'") + " " + "HH";
this.AssociatedObject.DaysViewSettings = daysViewSettings;

Timeline view

Customize the time label for Timelineview

Day view

Customize the time label for Dayview

Week view

Customize the time label for Weekview
Take a moment to pursue the documentation. You can also find the options like customizing the time label in Scheduler.


Conclusion

I hope you enjoyed learning about how to customize the time label of WinUI Scheduler (Calendar).

You can refer to our WinUI Scheduler feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our 
WinUI Scheduler example
 to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied