Skip to main content
A newer version of this page is available. .

ReminderItem.TimeBeforeStart Property

Gets or sets the time interval before the appointment’s start time used to calculate the ReminderItem.AlertTime value.

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public TimeSpan TimeBeforeStart { get; set; }

Property Value

Type Description
TimeSpan

A TimeSpan value that specifies the interval before the appointment start.

Remarks

End-users can specify the TimeBeforeStart property value using the Reminder editor in the Appointment Window or selecting a value in the Ribbon UI, as shown below.

WPFScheduler_ReminderRibbon

Example

View Example

// 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);
See Also