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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize time label of schedule in Xamarin.Forms?

Platform: Xamarin.Forms |
Control: SfSchedule

Time label customization in schedule

SfSchedule allows you customize the time label text of schedule views.

This article explains you how to customize the time label text of TimeLineView in schedule.

Note:

The time label text can be customized for DayView, WeekView, and WorkWeekView using the DayViewSettings, WeekViewSettings, and WorkWeekViewSettings properties, respectively.

 

Step 1: Initialize an object for TimeLineViewSettings, and assign it to SfSchedule TimeLineViewSettings.

   TimelineViewSettings timelineViewSettings = new TimelineViewSettings();
   schedule.TimelineViewSettings = timelineViewSettings;

 

Step 2: Initialize an object for TimeLineLabelSettings, and assign it to SfSchedule TimeLineViewSettings.

TimelineLabelSettings labelSettings = new TimelineLabelSettings();
timelineViewSettings.LabelSettings = labelSettings;

 

Step 3: Append the required string value with time slot value, and assign it to the TimeFormat property of TimeLineLabelSettings.

labelSettings.TimeFormat = string.Format(" 'Room' ") + " " + "H";

 

Sample Demo: CustomTimeLabelText

day view time label customization

DayView

week view time label customization

WeekView

work week view time label customization

WorkWeekView

timeline view time label customization

TimelineView

 

 

 

 

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
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.

Up arrow icon

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

Live Chat Icon For mobile