How to hide the calendar non-working hours in the .NET MAUI event scheduler (SfScheduler)?
By default, the .NET MAUI Scheduler supports a 24-hour calendar in the day and timeline views. However, you can customize this by hiding non-business hours to focus on working hours. This can be achieved by modifying the StartHour and EndHour properties of SchedulerDaysView, as well as the StartHour and EndHour properties of SchedulerTimelineView.
XAML
<Grid> <scheduler:SfScheduler x:Name="Scheduler" View="Month" AllowedViews="Day,Week,WorkWeek,TimelineDay,TimelineWeek,TimelineWorkWeek"> <scheduler:SfScheduler.DaysView> <scheduler:SchedulerDaysView StartHour="8" EndHour="15"/> </scheduler:SfScheduler.DaysView> <scheduler:SfScheduler.TimelineView> <scheduler:SchedulerTimelineView StartHour="8" EndHour="15"/> </scheduler:SfScheduler.TimelineView> </scheduler:SfScheduler> </Grid>
Output
|
|
Conclusion
I hope you enjoyed learning how to hide the calendar non-working hours in the .NET MAUI Scheduler.
Refer to our .NET MAUI Scheduler feature tour page to learn about its other groundbreaking feature representations. You can explore our .NET MAUI Scheduler documentation to understand how to present and manipulate data.
For current customers, check out our .NET MAUI components from the License and Downloads page. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI Scheduler and other .NET MAUI components.
Please let us know in the following comments section if you have any queries or require clarifications. Contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

