Back to Devexpress

AppointmentMappings Class

wpf-devexpress-dot-xpf-dot-scheduling-9956b5c4.md

latest6.1 KB
Original Source

AppointmentMappings Class

Provides information on the appointment properties’ mapping to data fields.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public class AppointmentMappings :
    SchedulerItemBaseMappings
vb
Public Class AppointmentMappings
    Inherits SchedulerItemBaseMappings

The following members return AppointmentMappings objects:

Remarks

The AppointmentMappings class contains a set of properties whose names are similar to the persistent properties declared within the AppointmentItem class. If the SchedulerControl is bound to a data source using the DataSource.AppointmentsSource property, the properties of the AppointmentMappings class allow the corresponding AppointmentItem properties to be bound to the appropriate fields in the data source.

Access the AppointmentMappings object using the DataSource.AppointmentMappings property.

Example

View Example

xaml
<dxsch:SchedulerControl.DataSource>
    <dxsch:DataSource AppointmentsSource="{Binding Appointments}" ResourcesSource="{Binding Resources}">
        <dxsch:DataSource.AppointmentMappings>
            <dxsch:AppointmentMappings Start="StartTime" 
                                       End="EndTime" 
                                       AllDay="AllDay" 
                                       Subject="Subject" 
                                       Id="ID" 
                                       Description="Description" 
                                       LabelId="Label" 
                                       Location="Location" 
                                       RecurrenceInfo="RecurrenceInfo" 
                                       Reminder="ReminderInfo" 
                                       ResourceId="CarId" 
                                       StatusId="Status" 
                                       Type="EventType" />
        </dxsch:DataSource.AppointmentMappings>
        <dxsch:DataSource.ResourceMappings>
            <dxsch:ResourceMappings Id="ID" 
                                    Caption="Model" />
        </dxsch:DataSource.ResourceMappings>
    </dxsch:DataSource>
</dxsch:SchedulerControl.DataSource>
<dxsch:DayView ResourcesPerPage="3" />
<dxsch:MonthView/>

The following code snippets (auto-collected from DevExpress Examples) contain references to the AppointmentMappings class.

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#L46

xml
<dxsch:DataSource.AppointmentMappings>
    <dxsch:AppointmentMappings
        AllDay="AllDay"

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

xml
<dxsch:DataSource.AppointmentMappings>
    <dxsch:AppointmentMappings
        Id="Id"

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

xml
<dxsch:DataSource.AppointmentMappings>
    <dxsch:AppointmentMappings
        Id="Id"

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

xml
<dxsch:DataSource.AppointmentMappings>
    <dxsch:AppointmentMappings
        AllDay="AllDay"

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

xml
<dxsch:DataSource.AppointmentMappings>
    <dxsch:AppointmentMappings
        AllDay="AllDay"

Inheritance

Object BindableBase DevExpress.Mvvm.Native.FreezableBase MappingsBase SchedulerItemBaseMappings AppointmentMappings

See Also

AppointmentMappings Members

DevExpress.Xpf.Scheduling Namespace