AppointmentLabelItem Class
An appointment‘s label.
Namespace: DevExpress.XamarinForms.Scheduler
Assembly: DevExpress.XamarinForms.Scheduler.dll
Declaration
public class AppointmentLabelItem :
SourceObjectContainer
Related API Members
The following members return AppointmentLabelItem objects:
Remarks
Labels specify in which color the Scheduler paints its appointments. The Scheduler stores labels that it can use in the LabelItems collection.
The scheduler’s DataSource can store statuses in the AppointmentLabelsSource collection. The AppointmentLabelMappings property specifies how to convert source objects to appointments.
Note
The LabelItems collection is always synchronous with the scheduler’s DataSource when the source is specified.
You can use the DataSource.CreateSourceObject event to create a source object that is assigned to a new item, if the source objects’ type does not provide a parameterless constructor.
The appointment’s LabelId should be equal to to a Label’s Id in order to make the scheduler use the label’s color to paint the appointment.
Note that the scheduler fills its label collection with default labels if you do not populate the collection manually or generate labels from a data source. The list of default labels is the following:
Color | Color Value | Display Name | Label Id (Int32 Value) |
---|---|---|---|
#949494 | None | 0 | |
#F15558 | Important | 1 | |
#FF7C11 | Business | 2 | |
#FFBF22 | Personal | 3 | |
#FF6E86 | Vacation | 4 | |
#9865b0 | Must Attend | 5 | |
#756CFD | Travel Required | 6 | |
#0055D8 | Needs Preparation | 7 | |
#01B0EE | Birthday | 8 | |
#0097AD | Anniversary | 9 | |
#00C831 | Phone Call | 10 |