[c#]
ObservableCollection<System.DayOfWeek> NonWorkingDays = new ObservableCollection<System.DayOfWeek>();
NonWorkingDays.Add(System.DayOfWeek.Saturday); NonWorkingDays.Add(System.DayOfWeek.Sunday); WorkWeekViewSettings workWeekViewSettings = new WorkWeekViewSettings(); WorkWeekLabelSettings workWeekLabelSettings = new WorkWeekLabelSettings(); workWeekLabelSettings.TimeFormat = "HH:mm"; workWeekViewSettings.NonWorkingsDays = NonWorkingDays; workWeekViewSettings.WorkWeekLabelSettings = workWeekLabelSettings; Schedule.WorkWeekViewSettings = workWeekViewSettings; |
[c#] if (Device.OS == TargetPlatform.iOS) { Schedule.WorkWeekViewSettings.NonWorkingsDays.Add(DayOfWeek.Saturday); Schedule.WorkWeekViewSettings.NonWorkingsDays.Add(DayOfWeek.Sunday); } |
[XAML] <schedule:WorkWeekViewSettings.NonWorkingsDays> <x:DayOfWeek> <OnPlatform x:TypeArguments="x:DayOfWeek" iOS="Sunday"> </OnPlatform> </x:DayOfWeek> <x:DayOfWeek> <OnPlatform x:TypeArguments="x:DayOfWeek" iOS="Saturday"> </OnPlatform> </x:DayOfWeek> </schedule:WorkWeekViewSettings.NonWorkingsDays> |