Articles in this section
Category / Section

How to enable appointment reminder in WPF Scheduler?

1 min read

In the WPF Scheduler, it is possible to enable the appointment reminder with help of the EnableReminder property in the scheduler, and an appointment reminder alert will be displayed in the scheduler built-in reminder alert window.

XAML

Set the EnableReminder as ‘true’ for the scheduler and bind the appointments from the view model to a schedule by using the ItemsSource property.

<Window.DataContext>
    <local:SchedulerViewModel/>
</Window.DataContext>
<Grid x:Name="grid">
    <syncfusion:SfScheduler x:Name="schedule"
                            ViewType="Month"
                            ItemsSource="{Binding Events}"
                            EnableReminder="True"
                            >
    </syncfusion:SfScheduler>
</Grid>

C#

Create an instance of the SchedulerReminder class with the ReminderTimeInterval property to specify when to display the reminder alert. Then, it should be bound to the Reminders property in the ScheduleAppointment class to display alert notifications.

public class SchedulerViewModel
{
    public ScheduleAppointmentCollection Events { get; set; }
    public SchedulerViewModel()
    {
        this.Events = new ScheduleAppointmentCollection();
        var scheduleAppointment = new ScheduleAppointment()
        {
            StartTime = DateTime.Now,
            EndTime = DateTime.Now.AddHours(1),
            AppointmentBackground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FF339933")),
            Subject = "Conference",
            Reminders = new ObservableCollection<SchedulerReminder>
            {
                new SchedulerReminder { ReminderTimeInterval = new TimeSpan(0)},
            }
        };
        Events.Add(scheduleAppointment);
    }
}

View sample in GitHub

enable the appointment reminder in WPF Scheduler

Take a moment to pursue the documentation. You can also find the options available for the Reminder property in Schedule.

 

Conclusion
I hope you enjoyed how to enable appointment reminder in WPF Scheduler.
You can refer to our WPF Schedule 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 WPF Schedule 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)
Please  to leave a comment
Access denied
Access denied