---
title: "Time Regions in .NET MAUI Scheduler—An Overview"
published_at: "2023-06-01T11:00:00+00:00"
modified_at: "2026-01-16T07:46:50+00:00"
url: "https://www.syncfusion.com/blogs/post/time-regions-dotnet-maui-scheduler"
excerpt: "This blog will teach creating and customizing time regions in the .NET MAUI Scheduler control with code examples."
taxonomy_category:
  - ".NET MAUI"
  - "Desktop"
  - "Development"
  - "Mobile"
  - "Scheduler"
  - "Syncfusion"
taxonomy_post_tag:
  - ".NET MAUI"
  - "desktop"
  - "MAUI"
  - "Mobile"
  - "Scheduler"
---

# Time Regions in .NET MAUI Scheduler—An Overview

[Sasi Kumar Arumugam](https://www.syncfusion.com/blogs/author/sasi-kumar-arumugam)

![Time Regions in .NET MAUI Scheduler—An Overview](https://www.syncfusion.com/blogs/wp-content/uploads/2023/05/Time-Regions-in-.NET-MAUI-Scheduler%E2%80%94An-Overview.png)


Time regions are specific units of time used to define periods or durations. The [.NET MAUI Scheduler](https://www.syncfusion.com/maui-controls/maui-scheduler)
 supports customizing time regions. This customization includes adjusting the duration of time regions, setting specific start and end times, handling interactions in time regions, and defining recurring time regions.

By having their time regions customized, schedulers become more efficient and tailored to individual needs. For instance, in a doctor’s scheduling application, time regions can be customized to account for lunch and break times, which can prevent appointment scheduling during those times. This customization is essential to ensure there are no conflicts between appointments and that sufficient time is allocated for rest and meals.

![Time regions in .NET MAUI Scheduler](https://www.syncfusion.com/blogs/wp-content/uploads/2023/05/Time-regions-in-.NET-MAUI-Scheduler-1.png)

Time regions in .NET MAUI Scheduler

**Note:** If you are new to this control, refer to the [.NET MAUI Scheduler getting started](https://help.syncfusion.com/maui/scheduler/getting-started)
 documentation before proceeding.

This blog will show you how to create and customize time regions in the .NET MAUI Scheduler control.

## Defining the time region

Defining the time region requires the essential details in the following table.

| Customization options | Summary |
| --- | --- |
| StartTime | Customize the time region start date and time. |
| EndTime | Customize the time region end date and time. |
| Background | Customize the time region background color. |
| Text | Customize the text rendered in the time region. |
| TextStyle | Customize the style for the time region text. |

## Interaction restriction on a time region

In the .NET MAUI Scheduler, the [SchedulerTimeRegion](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Scheduler.SchedulerTimeRegion.html)
 class supports controlling, enabling, or disabling touch interaction for a time region using the [EnablePointerInteraction](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Scheduler.SchedulerTimeRegion.html#Syncfusion_Maui_Scheduler_SchedulerTimeRegion_EnablePointerInteraction)
 property. It prevents touch interaction on disabled time slots.

## Time region globalization

The time region feature provides globalization support, enabling users to customize time regions to align with different time zones or regional conventions using the [TimeZone](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Scheduler.SchedulerTimeRegion.html#Syncfusion_Maui_Scheduler_SchedulerTimeRegion_TimeZone)
 property. This can reduce errors when working across different time zones.

## Recurring time region

The time region feature provides recurrence support to repeat the same time region on a regular or periodic interval using [RecurrenceRule](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Scheduler.SchedulerRegionBase.html#Syncfusion_Maui_Scheduler_SchedulerRegionBase_RecurrenceRule)
. For example, you can schedule a daily lunch break for a doctor’s appointment scheduling system.

For more details about the recurrence rule, refer to the [recurrence rule](https://help.syncfusion.com/maui/scheduler/appointments#recurrence-rule)
 documentation.

The recurring exception is an advanced feature of time region recurrence that allows the exclusion of specific occurrences of a recurring time region by using the [RecurrenceExceptionDates](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Scheduler.SchedulerRegionBase.html#Syncfusion_Maui_Scheduler_SchedulerRegionBase_RecurrenceExceptionDates)
 property in the **SchedulerTimeRegion** class. This feature is useful when a regular schedule needs to be altered on a particular day or for a particular period, such as holidays or planned maintenance.

## Resource-based time region

The time region feature provides resource support to create customized time slots based on specific resources or assets using the [ResourceIds](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Scheduler.SchedulerRegionBase.html#Syncfusion_Maui_Scheduler_SchedulerRegionBase_ResourceIds)
 property. A resource-based time region defines the availability of those resources for scheduling.

## Applying the time regions to .NET MAUI Scheduler

The .NET MAUI Scheduler uses the **TimeRegions** property in the [SchedulerTimeSlotView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Scheduler.SchedulerTimeSlotView.html)
 class to customize the timeslots based on specified time regions and their properties such as **StartTime**, ** EndTime**, ** Text**, ** Background**, and ** TimeZone**.

```
SfScheduler scheduler = new SfScheduler();
scheduler.View = SchedulerView.Week;
ObservableCollection<SchedulerTimeRegion> timeRegions = new ObservableCollection<SchedulerTimeRegion>();

//// Adding time region in the scheduler time region collection.
timeRegions.Add(new SchedulerTimeRegion()
{
        StartTime = DateTime.Today.Date.AddHours(13),
        EndTime = DateTime.Today.Date.AddHours(14),
        Text = "Lunch",
        EnablePointerInteraction = false,
        RecurrenceRule = "FREQ=DAILY;INTERVAL=1",
});

//// Assigning the scheduler time region collection to the TimeRegions in DayView of .NET MAUI Scheduler.
scheduler.DaysView.TimeRegions = timeRegions;
this.Content = scheduler;
```

![Daily recurrence time region in .NET MAUI Scheduler](https://www.syncfusion.com/blogs/wp-content/uploads/2023/05/Daily-recurrence-time-region-in-.NET-MAUI-Scheduler-1.png)

Daily recurrence time region in .NET MAUI Scheduler

## Conclusion

Thank you for your time! This blog post showed you how to create and set a time region in the [.NET MAUI Scheduler](https://www.syncfusion.com/maui-controls/maui-scheduler)
. You can explore other features in the Scheduler control in its [documentation](https://help.syncfusion.com/maui/scheduler/overview)
.

If you are not a Syncfusion customer, try our 30-day [free trial](https://www.syncfusion.com/downloads)
 to see how our components can enhance your projects.

Please try the samples available in our [.NET MAUI sample location](https://github.com/syncfusion/maui-demos)
 and share your feedback or ask questions in the comments section. Or contact us through our [support forum](https://www.syncfusion.com/forums)
, [support portal](https://support.syncfusion.com/)
, or [feedback portal](https://www.syncfusion.com/feedback/home)
. We are happy to assist you!

## Related blogs

- [Elevate Your App’s User Experience with the New .NET MAUI Shimmer Control](https://www.syncfusion.com/blogs/post/dotnet-maui-shimmer-control.aspx)
- [Introducing the New .NET MAUI Popup Control](https://www.syncfusion.com/blogs/post/dotnet-maui-popup-control.aspx)
- [Introducing the New .NET MAUI Masked Entry Control](https://www.syncfusion.com/blogs/post/dotnet-maui-masked-entry-control.aspx)
- [Streamline MAUI Projects with the Syncfusion .NET MAUI Template Studio](https://www.syncfusion.com/blogs/post/dotnet-maui-template-studio.aspx)
