wpf-devexpress-dot-xpf-dot-scheduling-dot-datasource-e5c39087.md
Gets an object that specifies how appointment properties map to the data source fields.
Namespace : DevExpress.Xpf.Scheduling
Assembly : DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package : DevExpress.Wpf.Scheduling
public AppointmentMappings AppointmentMappings { get; set; }
Public Property AppointmentMappings As AppointmentMappings
| Type | Description |
|---|---|
| AppointmentMappings |
A AppointmentMappings object that provides information on the mapping of the appointment properties to the data fields.
|
Use the DataSource.AppointmentsSource property to specify a data source. Refer to this code sample:
public class Appointment {
public int Id { get; set; }
public bool AllDay { get; set; }
public string Subject { get; set; }
public string Description { get; set; }
public string Location { get; set; }
public DateTime Start { get; set; }
public DateTime End { get; set; }
public DateTime QueryStart { get; set; }
public DateTime QueryEnd { get; set; }
public int AppointmentType { get; set; }
public string RecurrenceInfo { get; set; }
public string ReminderInfo { get; set; }
public int? ResourceId { get; set; }
public int Label { get; set; }
public int Status { get; set; }
public string TimeZoneId { get; set; }
}
Public Class Appointment
Public Property Id As Integer
Public Property AllDay As Boolean
Public Property Subject As String
Public Property Description As String
Public Property Location As String
Public Property Start As DateTime
Public Property [End] As DateTime
Public Property QueryStart As DateTime
Public Property QueryEnd As DateTime
Public Property AppointmentType As Integer
Public Property RecurrenceInfo As String
Public Property ReminderInfo As String
Public Property ResourceId As Integer?
Public Property Label As Integer
Public Property Status As Integer
Public Property TimeZoneId As String
End Class
<dxsch:AppointmentMappings
Description="Description"
Id="Id"
LabelId="Label"
StatusId="Status"
RecurrenceInfo="RecurrenceInfo"
ResourceId="ResourceId"
Start="Start"
End="End"
QueryStart="QueryStart"
QueryEnd="QueryEnd"
Subject="Subject"
Location="Location"
AllDay="AllDay"
Reminder="ReminderInfo"
Type="AppointmentType"
TimeZoneId="TimeZoneId"/>
The following code snippets (auto-collected from DevExpress Examples) contain references to the AppointmentMappings 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.
<dxsch:DataSource AppointmentsSource="{Binding Appointments}" ResourcesSource="{Binding Doctors}">
<dxsch:DataSource.AppointmentMappings>
<dxsch:AppointmentMappings
<dxsch:DataSource AppointmentsSource="{Binding Appointments}" ResourcesSource="{Binding Calendars}">
<dxsch:DataSource.AppointmentMappings>
<dxsch:AppointmentMappings
wpf-scheduler-highlight-time-intervals/CS/SchedulerCellTemplate/MainWindow.xaml#L46
</dxsch:DataSource.TimeRegionMappings>
<dxsch:DataSource.AppointmentMappings>
<dxsch:AppointmentMappings
<dxsch:DataSource AppointmentLabelsSource="{Binding Categories}" AppointmentsSource="{Binding Appointments}">
<dxsch:DataSource.AppointmentMappings>
<dxsch:AppointmentMappings
ResourcesSource="{Binding SportChannels}">
<dxsch:DataSource.AppointmentMappings>
<dxsch:AppointmentMappings
See Also