Back to Devexpress

DataSource.TimeRegionMappings Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-datasource-7727284a.md

latest3.1 KB
Original Source

DataSource.TimeRegionMappings Property

Gets an object that specifies how time region properties map to the data source fields. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public TimeRegionMappings TimeRegionMappings { get; set; }
vb
Public Property TimeRegionMappings As TimeRegionMappings

Property Value

TypeDescription
TimeRegionMappings

A TimeRegionMappings object that provides information on the mapping of the time region properties to the data fields.

|

Remarks

Use the DataSource.TimeRegionsSource property to specify a data source. Refer to this code sample:

csharp
public class TimeRegion {
    public int Id { get; set; }
    public int? ResourceId { get; set; }
    public DateTime Start { get; set; }
    public DateTime End { get; set; }
    public string RecurrenceInfo { get; set; }
    public string TimeZoneId { get; set; }
}
vb
Public Class TimeRegion
    Public Property Id As Integer
    Public Property ResourceId As Integer?
    Public Property Start As DateTime
    Public Property [End] As DateTime
    Public Property RecurrenceInfo As String
    Public Property TimeZoneId As String
End Class
xaml
<dxsch:TimeRegionMappings 
    Id="Id"
    ResourceId="ResourceId"
    Start="Start"
    End="End"
    RecurrenceInfo="RecurrenceInfo"
    TimeZoneId="TimeZoneId"/>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TimeRegionMappings property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-scheduler-highlight-time-intervals/CS/SchedulerCellTemplate/MainWindow.xaml#L35

xml
>
<dxsch:DataSource.TimeRegionMappings>
    <dxsch:TimeRegionMappings

See Also

DataSource Class

DataSource Members

DevExpress.Xpf.Scheduling Namespace