All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

SchedulerViewBase.TimeRegionContentTemplate Property

Specifies the template that defines the presentation of time regions. This is a dependency property.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v20.1.dll

Declaration

public DataTemplate TimeRegionContentTemplate { get; set; }
Public Property TimeRegionContentTemplate As DataTemplate

Property Value

Type Description
DataTemplate

A System.Windows.DataTemplate object that defines the presentation of time regions.

Remarks

Use the TimeRegionContentTemplateSelector to choose the time region template based on custom logic.

The XAML snippet below illustrates how to add an image to time regions.

 <dxsch:SchedulerControl> 
    <!--define a custom template that adds an icon to time regions--> 
    <dxsch:SchedulerControl.Resources> 
        <DataTemplate x:Key="lunchRegionTemplate">
            <Image MaxHeight="28"
            Source="{dx:SvgImageSource Uri='pack://application:,,,/DevExpress.Images.v19.2;component/SvgImages/Icon Builder/Travel_Restaurant.svg'}" />
        </DataTemplate> 
    </dxsch:SchedulerControl.Resources> 
    <dxsch:DayView 
                TimeRegionContentTemplate="{StaticResource lunchRegionTemplate}" /> 
</dxsch:SchedulerControl> 
NOTE

The TimeRegionContentTemplate cannot be set implicitly.

See Also