# Time Regions | WPF Controls | DevExpress Documentation

You can use Time Regions to highlight specific time frames.

![](/WPF/images/scheduler-time-regions.png)

[View Example: Highlight Time Intervals](https://github.com/DevExpress-Examples/wpf-scheduler-highlight-time-intervals)

To create a Time Region, add a [TimeRegionItem](/WPF/DevExpress.Xpf.Scheduling.TimeRegionItem) object to the [SchedulerControl.TimeRegionItems](/WPF/DevExpress.Xpf.Scheduling.SchedulerControl.TimeRegionItems) collection.

- XAML

<section id="tabpanel_7ihrOcxEkL_tabid-xaml-0" role="tabpanel" data-tab="tabid-xaml-0">
<pre><code class="lang-xaml">&lt;dxsch:SchedulerControl.TimeRegionItems&gt;
    &lt;dxsch:TimeRegionItem
        Start=&quot;{x:Static sys:DateTime.Today}&quot; End=&quot;{x:Static sys:DateTime.Now}&quot;
        BrushName=&quot;{x:Static dxsch:DefaultBrushNames.TimeRegion1Hatch}&quot;
        /&gt;
&lt;/dxsch:SchedulerControl.TimeRegionItems&gt;
</code></pre></section>

Brushes are used to paint Time Regions. See the [Appearance Customization](/WPF/400994/controls-and-libraries/scheduler/appearance-customization) topic for more information.

Specify the [TimeRegionItem.ResourceId](/WPF/DevExpress.Xpf.Scheduling.SchedulerItemBase.ResourceId) property to show a Time Region only for a specific [resource](/WPF/119219/controls-and-libraries/scheduler/resources) when the scheduler [is grouped](/WPF/119230/controls-and-libraries/scheduler/grouping).

Use the view’s [TimeRegionContentTemplate](/WPF/DevExpress.Xpf.Scheduling.SchedulerViewBase.TimeRegionContentTemplate) and [TimeRegionContentTemplateSelector](/WPF/DevExpress.Xpf.Scheduling.SchedulerViewBase.TimeRegionContentTemplateSelector) properties to display custom content within Time Regions.

The following views support Time Regions:

- [Day View](/WPF/119204/controls-and-libraries/scheduler/views/day-view)
- [Work Week View](/WPF/119205/controls-and-libraries/scheduler/views/work-week-view)
- [Week View](/WPF/119206/controls-and-libraries/scheduler/views/week-view)
- [Timeline View](/WPF/119586/controls-and-libraries/scheduler/views/timeline-view)
- [Month View](/WPF/119207/controls-and-libraries/scheduler/views/month-view)

## Recurrent Time Regions

You can create a recurrent Time Region in the same manner as a recurrent appointment. Set the [Type](/WPF/DevExpress.Xpf.Scheduling.TimeRegionItem.Type) property to [Pattern](/WPF/DevExpress.Xpf.Scheduling.TimeRegionType) and specify the [RecurrenceInfo](/WPF/DevExpress.Xpf.Scheduling.SchedulerItemBase.RecurrenceInfo) property value.

- XAML

<section id="tabpanel_7ihrOcxEkL-1_tabid-xaml-1" role="tabpanel" data-tab="tabid-xaml-1">
<pre><code class="lang-xaml">&lt;dxsch:SchedulerControl.TimeRegionItems&gt;
    &lt;dxsch:TimeRegionItem
        Type =&quot;Pattern&quot;
        Start=&quot;1/1/2019 13:00:00&quot; End=&quot;1/1/2019 14:00:00&quot;
        RecurrenceInfo=&quot;{dxsch:RecurrenceDaily Start=&#39;1/1/2019 13:00:00&#39;, ByDay=WorkDays}&quot;
        BrushName=&quot;{x:Static dxsch:DefaultBrushNames.TimeRegion3Hatch}&quot;
    /&gt;
&lt;/dxsch:SchedulerControl.TimeRegionItems&gt;
</code></pre></section>

Refer to the [Recurrence](/WPF/119213/controls-and-libraries/scheduler/appointments/recurrence) topic for more information about recurrences.