Category / Section
How to customize the Schedule view label format in Xamarin.Forms (SfSchedule) ?
1 min read
You can customize the schedule view label by using TimeFormat property in each ScheduleView in Xamarin.Forms SfSchedule.
DayView
Customize the DayView label by setting TimeFormat property in DayLabelSettings.
<schedule:SfSchedule.DayViewSettings> <schedule:DayViewSettings> <schedule:DayViewSettings.DayLabelSettings> <schedule:DayLabelSettings TimeFormat="hh:mm"/> </schedule:DayViewSettings.DayLabelSettings> </schedule:DayViewSettings> </schedule:SfSchedule.DayViewSettings>
WeekView
Customize the WeekView label by setting TimeFormat property in WeekLabelSettings.
<schedule:SfSchedule.WeekViewSettings> <schedule:WeekViewSettings> <schedule:WeekViewSettings.WeekLabelSettings> <schedule:WeekLabelSettings TimeFormat="hh:mm"/> </schedule:WeekViewSettings.WeekLabelSettings> </schedule:WeekViewSettings> </schedule:SfSchedule.WeekViewSettings>
WorkWeekView
Customize the WorkWeekView label by setting TimeFormat property in WorkWeekLabelSettings.
<schedule:SfSchedule.WorkWeekViewSettings> <schedule:WorkWeekViewSettings> <schedule:WorkWeekViewSettings.WorkWeekLabelSettings> <schedule:WorkWeekLabelSettings TimeFormat="hh:mm"/> </schedule:WorkWeekViewSettings.WorkWeekLabelSettings> </schedule:WorkWeekViewSettings> </schedule:SfSchedule.WorkWeekViewSettings>
TimelineView
Customize the TimelineView label by setting TimeFormat property in of LabelSettings.
<schedule:SfSchedule.TimelineViewSettings> <schedule:TimelineViewSettings> <schedule:TimelineViewSettings.LabelSettings> <schedule:TimelineLabelSettings TimeFormat="hh:mm"/> </schedule:TimelineViewSettings.LabelSettings> </schedule:TimelineViewSettings> </schedule:SfSchedule.TimelineViewSettings>
OutPut