AppointmentMapping.RecurrenceInfo Property

Gets or sets the data field to which an appointment's Appointment.RecurrenceInfo property is bound.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v20.1.dll

Declaration

public string RecurrenceInfo { get; set; }
Public Property RecurrenceInfo As String

Property Value

Type Description
String

A String value that specifies the name of the bound data field.

Remarks

IMPORTANT

You are viewing documentation for the legacy WPF Scheduler control. If you're starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

Use the RecurrenceInfo property to bind an appointment's Appointment.RecurrenceInfo property to a data field. The data field is taken from the datasource specified by the DataSource property of the AppointmentStorage.

Since the Appointment.RecurrenceInfo property is of the RecurrenceInfo type, binding it to a data field implies assigning appropriate values to the RecurrenceInfo object's specific properties (such as the RecurrenceInfo.AllDay, RecurrenceInfo.DayNumber, RecurrenceInfo.WeekOfMonth and etc). These values are automatically taken from the bound data field (which should be of the memo type) by parsing the field's value based on its specific structure. The line below demonstrates a sample field value given in the required notation.

<RecurrenceInfo AllDay="False" DayNumber="1" DayOfMonth="0" WeekDays="42" Id="51c81018-53fa-4d10-925f-2ed7f8408c75" Month="12" OccurenceCount="19" Periodicity="1" Range="2" Start="7/11/2005 7:00:00" End="8/24/2005 1:00:00" Type="1" />

Note that the RecurrenceInfo.ToXml and RecurrenceInfo.FromXml methods can be used to correctly save and load the recurrence information using xml format.

Examples

This example demonstrates how to specify standard mappings for appointment properties via the AppointmentStorage.Mappings property.

<dxsch:SchedulerStorage.AppointmentStorage>
    <dxsch:AppointmentStorage>
        <dxsch:AppointmentStorage.Mappings>
            <dxsch:AppointmentMapping 
                Start="StartTime" 
                End="EndTime" 
                AllDay="AllDay"
                Description="Description"
                Label="Label"
                Location="Location"
                Subject="Subject" 
                RecurrenceInfo="RecurrenceInfo"
                ReminderInfo="ReminderInfo"
                Status="Status"
                Type="EventType"/>
        </dxsch:AppointmentStorage.Mappings>
    </dxsch:AppointmentStorage>
</dxsch:SchedulerStorage.AppointmentStorage>
See Also