The requested page is not available for the requested platform. You are viewing the content for Default platform.

AppointmentLabelItem Class

An appointment's label.

Namespace: DevExpress.XamarinForms.Scheduler

Assembly: DevExpress.XamarinForms.Scheduler.dll

Declaration

public class AppointmentLabelItem :
    SourceObjectContainer

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)

None

#949494

None

0

Important

#F15558

Important

1

Business

#FF7C11

Business

2

Personal

#FFBF22

Personal

3

Vacation

#FF6E86

Vacation

4

Must Attend

#9865b0

Must Attend

5

Travel Required

#756CFD

Travel Required

6

Needs Preparation

#0055D8

Needs Preparation

7

Birthday

#01B0EE

Birthday

8

Anniversary

#0097AD

Anniversary

9

Phone Call

#00C831

Phone Call

10

Inheritance

Object
DevExpress.XamarinForms.Scheduler.Internal.NotifyPropertyChangedBase
SourceObjectContainer
AppointmentLabelItem
See Also