[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Collapse]Scheduler (legacy)
   [Expand]Getting Started
   [Expand]Visual Elements
    [Expand]Data Binding
    [Expand]Data Exchange
    [Expand]Date and Time
    [Expand]Initial Settings
    [Expand]Range Control
      How to: Create Appointments with Various Recurrence Types Programmatically (legacy)
      How to: Customize Minutely Recurrence (legacy)
      How to: Customize Hourly Recurrence (legacy)
      How to: Customize Daily Recurrence (legacy)
      How to: Customize Weekly Recurrence (legacy)
      How to: Customize Monthly Recurrence (legacy)
      How to: Customize Yearly Recurrence (legacy)
      How to: Disable the Appointment Recurrence Feature (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Create Appointments with Various Recurrence Types Programmatically (legacy)


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.

This document demonstrates how recurring appointments with different periodicity and number of occurrences can be created in code. Many examples are provided to help you in specifying complex periodical conditions.

Perform the following simple steps. First, create a new appointment that will serves as a pattern for recurring appointments. Then, modify its recurrence information as required via the Appointment.RecurrenceInfo property. Note than you can specify only one type of recurrence - minutely, hourly, daily, weekly, monthly, or yearly. Finally, add the created recurrence pattern to the storage.

Expanded 1. Create a Pattern

Use the following code to create a pattern for recurring appointments starting at 9 AM and finishing at 9:15. So the first appointment in a series will start at 9 AM and will last for 15 minutes.

Expanded 2. Specify the Recurrence Information

To specify the recurrence information, use the Appointment.RecurrenceInfo property providing access to the RecurrenceInfo instance. It is created automatically for an appointment of the AppointmentType.Pattern type.

Select one of available recurrence types and set all required recurrence attributes. For example, refer to one of the following documents.

How to: Customize Minutely Recurrence (legacy)

How to: Customize Hourly Recurrence (legacy)

How to: Customize Daily Recurrence (legacy)

How to: Customize Weekly Recurrence (legacy)

How to: Customize Monthly Recurrence (legacy)

How to: Customize Yearly Recurrence (legacy)

Expanded 3. The Final Step

And finally, add the created recurrence pattern to the storage.

Expanded See Also

Is this topic helpful?​​​​​​​