Note
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.
An appointment recurs every 2 weeks, on Monday and Wednesday. It occurs 15 times.
apt.RecurrenceInfo.Type = RecurrenceType.Weekly;
apt.RecurrenceInfo.Start = apt.Start;
apt.RecurrenceInfo.Periodicity = 2;
apt.RecurrenceInfo.WeekDays = WeekDays.Monday | WeekDays.Wednesday;
apt.RecurrenceInfo.Range = RecurrenceRange.OccurrenceCount;
apt.RecurrenceInfo.OccurrenceCount = 15;
apt.RecurrenceInfo.Type = RecurrenceType.Weekly
apt.RecurrenceInfo.Start = apt.Start
apt.RecurrenceInfo.Periodicity = 2
apt.RecurrenceInfo.WeekDays = WeekDays.Monday Or WeekDays.Wednesday
apt.RecurrenceInfo.Range = RecurrenceRange.OccurrenceCount
apt.RecurrenceInfo.OccurrenceCount = 15
An appointment occurs every fourth week on weekends. Infinite (no end date).
apt.RecurrenceInfo.Type = RecurrenceType.Weekly;
apt.RecurrenceInfo.Start = apt.Start;
apt.RecurrenceInfo.Periodicity = 4;
apt.RecurrenceInfo.WeekDays = WeekDays.WeekendDays;
apt.RecurrenceInfo.Range = RecurrenceRange.NoEndDate;
apt.RecurrenceInfo.Type = RecurrenceType.Weekly
apt.RecurrenceInfo.Start = apt.Start
apt.RecurrenceInfo.Periodicity = 4
apt.RecurrenceInfo.WeekDays = WeekDays.WeekendDays
apt.RecurrenceInfo.Range = RecurrenceRange.NoEndDate
An appointment occurs every Friday for 24 days.
apt.RecurrenceInfo.Type = RecurrenceType.Weekly;
apt.RecurrenceInfo.Start = apt.Start;
apt.RecurrenceInfo.Periodicity = 1;
apt.RecurrenceInfo.WeekDays = WeekDays.Friday;
apt.RecurrenceInfo.Range = RecurrenceRange.EndByDate;
apt.RecurrenceInfo.End = apt.RecurrenceInfo.Start.AddDays(24);
apt.RecurrenceInfo.Type = RecurrenceType.Weekly
apt.RecurrenceInfo.Start = apt.Start
apt.RecurrenceInfo.Periodicity = 1
apt.RecurrenceInfo.WeekDays = WeekDays.Friday
apt.RecurrenceInfo.Range = RecurrenceRange.EndByDate
apt.RecurrenceInfo.End = apt.RecurrenceInfo.Start.AddDays(24)