Articles in this section

How to create daily recurrence appointments in WinUI Scheduler?

Add the daily recurrence appointment to the WinUI Scheduler with the help of RecurrenceRule.

Please refer to the user ​​​guide documentation for the recurrence property and its purpose.  

C#

Create the recurrence appointment in the ViewModel with the help of RecurrenceRule.

public class SchedulerViewModel : INotifyPropertyChanged
{
    private ScheduleAppointmentCollection scheduleAppointmentCollection;
    public SchedulerViewModel()
    {
        this.ScheduleAppointmentCollection = new ScheduleAppointmentCollection();
        var scheduleAppointment = new ScheduleAppointment()
        {
            Id = 1,
            StartTime = DateTime.Today.AddHours(11),
            EndTime = DateTime.Today.AddHours(12),
            Subject = "Occurs daily",
        };
        scheduleAppointment.RecurrenceRule = "FREQ=DAILY;INTERVAL=1;COUNT=10";
        ScheduleAppointmentCollection.Add(scheduleAppointment);
    }
    public ScheduleAppointmentCollection ScheduleAppointmentCollection
    {
        get
        {
            return this.scheduleAppointmentCollection;
        }
        set
        {
            this.scheduleAppointmentCollection = value;
            this.RaiseOnPropertyChanged("ScheduleAppointmentCollection");
        }
    }
    public event PropertyChangedEventHandler PropertyChanged;
    private void RaiseOnPropertyChanged(string propertyName)
    {
        this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
    }
}

XAML

Binding the ScheduleAppointmentCollection to the Scheduler.

<scheduler:SfScheduler x:Name="Schedule"
                FirstDayOfWeek="Monday" 
                ViewType="Week"
                ItemsSource="{Binding ScheduleAppointmentCollection}">
</scheduler:SfScheduler>

Create daily recurrence appointments in the WinUI Scheduler 


Conclusion

I hope you enjoyed learning about how to create daily recurrence appointments in WinUI Scheduler (Calendar).

You can refer to our WinUI Scheduler feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our 
WinUI Scheduler example
 to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied