Back to Devexpress

AppointmentMappings.LabelId Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-appointmentmappings-6c35ad62.md

latest5.5 KB
Original Source

AppointmentMappings.LabelId Property

Specifies the mapping that binds the appointment’s AppointmentItem.LabelId property to the data source field.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public Mapping LabelId { get; set; }
vb
Public Property LabelId As Mapping

Property Value

TypeDescription
Mapping

A Mapping object that specifies the bound data field and converter.

|

Remarks

Use the LabelId property to bind the appointment’s AppointmentItem.LabelId 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.

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 LabelId 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#L50

xml
Id="Id"
LabelId="IssueId"
Location="Location"

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

xml
StatusId="Status"
        LabelId="Label"/>
</dxsch:DataSource.AppointmentMappings>

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

xml
StatusId="Status"
        LabelId="Label"/>
</dxsch:DataSource.AppointmentMappings>

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

xml
End="EndTime"
LabelId="CategoryId"
Location="Location"

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

xml
Id="Id"
LabelId="SportId"
RecurrenceInfo="RecurrenceInfo"

See Also

AppointmentMappings Class

AppointmentMappings Members

DevExpress.Xpf.Scheduling Namespace