How to change the number of days visible in the MAUI Scheduler (SfScheduler) timeslot views?
The .NET MAUI Scheduler allows customization of the number of days visible in its timeslot views, such as day, week, and workweek. This is achieved using the NumberOfVisibleDays property in both DaysView and TimelineView. This document guides you on configuring these properties to fit your scheduling needs.
XAML
<?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="NumberOfVisibleDays.MainPage" xmlns:scheduler="clr-namespace:Syncfusion.Maui.Scheduler;assembly=Syncfusion.Maui.Scheduler"> <scheduler:SfScheduler x:Name="scheduler" View="Week"> <scheduler:SfScheduler.DaysView> <scheduler:SchedulerDaysView NumberOfVisibleDays="4"/> </scheduler:SfScheduler.DaysView> </scheduler:SfScheduler> </ContentPage>
Output
|
Conclusion
I hope you enjoyed learning how to change the number of days visible in the MAUI Scheduler (SfScheduler) timeslot views.
You can refer to our .NET MAUI Scheduler feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. Explore our .NET MAUI Scheduler example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!
