Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 3.18 KB

File metadata and controls

62 lines (48 loc) · 3.18 KB

How to customize the Schedule view label format in Xamarin.Forms (SfSchedule) ?

You can customize the schedule view label by using TimeFormat property in each ScheduleView in Xamarin.Forms SfSchedule.

You can also refer the following article.

https://www.syncfusion.com/kb/11313/how-to-customize-the-schedule-view-label-format-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>