Back to Devexpress

DataSource.AppointmentMappings Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-datasource-e5c39087.md

latest6.4 KB
Original Source

DataSource.AppointmentMappings Property

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

Declaration

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

Property Value

TypeDescription
AppointmentMappings

A AppointmentMappings object that provides information on the mapping of the appointment properties to the data fields.

|

Remarks

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

csharp
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; }
}
vb
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
xaml
<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.

wpf-scheduler-use-scheduler-report-to-print-and-export-appointments/CS/PrintingExample/MainWindow.xaml#L45

xml
<dxsch:DataSource AppointmentsSource="{Binding Appointments}" ResourcesSource="{Binding Doctors}">
    <dxsch:DataSource.AppointmentMappings>
        <dxsch:AppointmentMappings

wpf-scheduler-generate-time-scales-from-view-model-collection/CS/WpfSchedulerTimelineScalesTemplate/MainWindow.xaml#L44

xml
<dxsch:DataSource AppointmentsSource="{Binding Appointments}" ResourcesSource="{Binding Calendars}">
    <dxsch:DataSource.AppointmentMappings>
        <dxsch:AppointmentMappings

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

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

wpf-scheduler-implement-custom-mapping-converter-for-color-values/CS/ColorMappingExample/MainWindow.xaml#L38

xml
<dxsch:DataSource AppointmentLabelsSource="{Binding Categories}" AppointmentsSource="{Binding Appointments}">
    <dxsch:DataSource.AppointmentMappings>
        <dxsch:AppointmentMappings

wpf-scheduler-obtain-selected-appointment-resource-and-time-interval/CS/DXSchedulerSelection/MainWindow.xaml#L61

xml
ResourcesSource="{Binding SportChannels}">
<dxsch:DataSource.AppointmentMappings>
    <dxsch:AppointmentMappings

See Also

Mappings

How to: Bind Scheduler to Data using Entity Framework

DataSource Class

DataSource Members

DevExpress.Xpf.Scheduling Namespace