Back to Devexpress

SchedulerItemBaseMappings.RecurrenceInfo Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-scheduleritembasemappings-ff7ac896.md

latest5.1 KB
Original Source

SchedulerItemBaseMappings.RecurrenceInfo Property

Gets or sets the mapping that binds the appointment’s AppointmentItem.RecurrenceInfo 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 RecurrenceInfo { get; set; }
vb
Public Property RecurrenceInfo As Mapping

Property Value

TypeDescription
Mapping

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

|

Remarks

Use the RecurrenceInfo property to bind the appointment’s AppointmentItem.RecurrenceInfo property to a data field. The data field is obtained from the data source specified by the DataSource.AppointmentsSourceProperty property.

The AppointmentItem.RecurrenceInfo property binding requires assigning the values to the RecurrenceInfo object’s properties. These values are obtained by parsing the data field content.

The data field contains recurrence information as the string in XML-like format, as illustrated in the following sample:

xml
<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" />

Important

The RecurrenceInfo property does not support IRecurrenceInfo values. Use a string value instead.

You can implement a value converter and register it by assigning to the Mapping.Converter property to use a custom format for storing recurrence information.

The following code snippets (auto-collected from DevExpress Examples) contain references to the RecurrenceInfo 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-highlight-time-intervals/CS/SchedulerCellTemplate/MainWindow.xaml#L43

xml
Type="Type"
RecurrenceInfo="RecurrenceInfo"
/>

wpf-scheduler-use-scheduler-report-to-print-and-export-appointments/CS/PrintingExample/MainWindow.xaml#L52

xml
Location="Location"
RecurrenceInfo="RecurrenceInfo"
Reminder="ReminderInfo"

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

xml
ResourceId="CalendarId"
RecurrenceInfo="RecurrenceInfo"
StatusId="Status"

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

xml
Location="Location"
RecurrenceInfo="RecurrenceInfo"
Reminder="ReminderInfo"

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

xml
LabelId="SportId"
RecurrenceInfo="RecurrenceInfo"
Reminder="ReminderInfo"

See Also

SchedulerItemBaseMappings Class

SchedulerItemBaseMappings Members

DevExpress.Xpf.Scheduling Namespace