How to customize the time ruler label in the .NET MAUI Scheduler (SfScheduler) days and timeline view?
The .NET MAUI Scheduler allows customization of the time ruler label using the TimeRulerTextStyle property. This property can be adjusted within the DaysView and TimelineView to fit specific design and readability requirements.
XAML
Set up the SfScheduler in your XAML layout:
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TimelabelCustomization.MainPage"
BackgroundColor="{DynamicResource SecondaryColor}"
xmlns:scheduler="clr-namespace:Syncfusion.Maui.Scheduler;assembly=Syncfusion.Maui.Scheduler">
<Grid>
<scheduler:SfScheduler x:Name="Scheduler" View="Day" AllowedViews="Day,Week,WorkWeek,TimelineDay,TimelineWeek,TimelineWorkWeek">
</scheduler:SfScheduler>
</Grid>
</ContentPage>
CS
In your code-behind, customize the time ruler label using SchedulerTextStyle.
public MainPage()
{
InitializeComponent();
var timeRulerTextStyle = new SchedulerTextStyle()
{
TextColor = Colors.Red,
FontSize = 10,
};
this.Scheduler.DaysView.TimeRulerTextStyle = timeRulerTextStyle;
this.Scheduler.TimelineView.TimeRulerTextStyle = timeRulerTextStyle;
}
}
Output
Day view | TimelineDay view |
|
|
Conclusion
I hope you enjoyed learning how to customize the time ruler label in the .NET MAUI Scheduler days for enhanced visual design in both the days and timeline views.
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!

