How to change the number of weeks visible in .NET MAUI Scheduler (SfScheduler) month view?
By default, the .NET MAUI Scheduler displays 6 weeks in the month view. To customize the number of visible weeks, you can use the NumberOfVisibleWeeks property in the MonthView. This feature allows you to adjust the visible week span from 1 to 6 weeks and can help increase each day's height to show more appointments in each month cell.
The height of each week is calculated by dividing the total scheduler height by the number of visible weeks, allowing for more appointments to be shown in each cell if fewer weeks are displayed.
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="Month"> <scheduler:SfScheduler.MonthView> <scheduler:SchedulerMonthView NumberOfVisibleWeeks="2"/> </scheduler:SfScheduler.MonthView> </scheduler:SfScheduler> </ContentPage>
|
Conclusion
I hope you enjoyed learning how to change the number of weeks visible in .NET MAUI Scheduler month view.
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!
