wpf-devexpress-dot-xpf-dot-scheduling-dot-appointmentmappings-8b53b2bf.md
Specifies the mapping that binds the appointment’s AppointmentItem.Location property to the data source field.
Namespace : DevExpress.Xpf.Scheduling
Assembly : DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package : DevExpress.Wpf.Scheduling
public Mapping Location { get; set; }
Public Property Location As Mapping
| Type | Description |
|---|---|
| Mapping |
A Mapping object that specifies the bound data field and converter.
|
Use the Location property to bind the appointment’s AppointmentItem.Location property to a data field. The data field is obtained from the data source specified by the DataSource.AppointmentsSourceProperty property.
Tip
Use the Mapping.Converter property to register a value converter for a custom storing format.
<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 Location 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.
LabelId="IssueId"
Location="Location"
RecurrenceInfo="RecurrenceInfo"
Description="Description"
Location="Location"
ResourceId="CalendarId"
wpf-scheduler-highlight-time-intervals/CS/SchedulerCellTemplate/MainWindow.xaml#L55
Description="Description"
Location="Location"
ResourceId="CalendarId"
LabelId="CategoryId"
Location="Location"
RecurrenceInfo="RecurrenceInfo"
wpf-scheduler-apply-end-user-restrictions/CS/WpfApplication1/MainWindow.xaml#L31
LabelId="LabelKey"
Location="Location"
RecurrenceInfo="RecurrenceInfo"
See Also