Back to Devexpress

ReminderItem Class

wpf-devexpress-dot-xpf-dot-scheduling-13c7fb72.md

latest3.8 KB
Original Source

ReminderItem Class

A reminder for a non-recurring appointment.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public class ReminderItem :
    NotifyPropertyChangedBase
vb
Public Class ReminderItem
    Inherits NotifyPropertyChangedBase

The following members return ReminderItem objects:

Remarks

A reminder sends alerts at a specified time. It is associated with an appointment so that an appointment has a collection of reminders accessible using the AppointmentItem.Reminders property.

To create a reminder, use the AppointmentItem.CreateNewReminder method. Subsequently you should add it to the particular appointment’s AppointmentItem.Reminders collection.

The built-in reminder controller checks the alert times for all reminders at a regular interval the SchedulerControl.RemindersCheckInterval property specifies. When it is time for the reminder (determined by the ReminderItem.AlertTime property), the controller adds it to the SchedulerControl.TriggeredReminders collection, fires the SchedulerControl.RemindersWindowShowing event and invokes the Reminders Window.

Example

View Example

csharp
// Remove previous reminders
appointment.Reminders.Clear();
// Set multiple reminders for an appointment
ReminderItem reminder1 = appointment.CreateNewReminder();
ReminderItem reminder2 = appointment.CreateNewReminder();
reminder1.AlertTime = DateTime.Now.AddMinutes(15);
reminder2.TimeBeforeStart = new TimeSpan(0, 30, 0);

appointment.Reminders.Add(reminder1);
appointment.Reminders.Add(reminder2);
vb
' Remove previous reminders
appointment.Reminders.Clear()
' Set multiple reminders for an appointment
Dim reminder1 As ReminderItem = appointment.CreateNewReminder()
Dim reminder2 As ReminderItem = appointment.CreateNewReminder()
reminder1.AlertTime = Date.Now.AddMinutes(15)
reminder2.TimeBeforeStart = New TimeSpan(0, 30, 0)

appointment.Reminders.Add(reminder1)
appointment.Reminders.Add(reminder2)

Inheritance

Object DevExpress.Xpf.Scheduling.Internal.NotifyPropertyChangedBase ReminderItem

See Also

ReminderItem Members

Reminders

DevExpress.Xpf.Scheduling Namespace