wpf-devexpress-dot-xpf-dot-scheduling-dot-scheduleritembase-8f0e6581.md
Gets or sets the start date and time of the appointment.
Namespace : DevExpress.Xpf.Scheduling
Assembly : DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package : DevExpress.Wpf.Scheduling
public DateTime Start { get; set; }
Public Property Start As Date
| Type | Description |
|---|---|
| DateTime |
A DateTime value that is the start of the appointment.
|
The Start property and the SchedulerItemBase.Duration property specify the value of the SchedulerItemBase.End property for the appointment. The End value is always calculated as End = Start + Duration.
Note
If the SchedulerItemBase.AllDay property is set to true , then the appointment’s start date is the Date fraction of the Start value, and the start time is 0:00.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Start property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-scheduler-filter-time-regions/CS/DXSample/MainWindow.xaml#L44
<dxsch:TimeRegionItem BrushName="{x:Static dxsch:DefaultBrushNames.TimeRegion3Hatch}"
Start="1/1/2019 13:00:00"
End="1/1/2019 14:00:00"
wpf-scheduler-create-recurrent-appointments-in-code/CS/RecurrenceExamples/MainWindow.xaml.cs#L26
AppointmentItem apt = new AppointmentItem(AppointmentType.Pattern);
apt.Start = DateTime.Today.AddHours(9);
apt.End = apt.Start.AddMinutes(5);
if (draggedAppointment.LabelId != null)
if ((int)draggedAppointment.LabelId == 1 && (draggedAppointment.Start != ((MedicalAppointment)draggedAppointmentSource.SourceObject).StartTime))
e.Cancel = true;
wpf-scheduler-create-recurrent-appointments-in-code/VB/RecurrenceExamples/MainWindow.xaml.vb#L26
Dim apt As AppointmentItem = New AppointmentItem(AppointmentType.Pattern)
apt.Start = Date.Today.AddHours(9)
apt.End = apt.Start.AddMinutes(5)
If draggedAppointment.LabelId IsNot Nothing Then
If CInt(draggedAppointment.LabelId) = 1 AndAlso (draggedAppointment.Start <> CType(draggedAppointmentSource.SourceObject, MedicalAppointment).StartTime) Then e.Cancel = True
End If
See Also