Back to Devexpress

AppointmentItemEventArgs.Appointment Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-appointmentitemeventargs.md

latest2.7 KB
Original Source

AppointmentItemEventArgs.Appointment Property

Gets the appointment for which the element is raised.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public AppointmentItem Appointment { get; }
vb
Public ReadOnly Property Appointment As AppointmentItem

Property Value

TypeDescription
AppointmentItem

A AppointmentItem object that is the element for which the event is raised.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Appointment 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-create-reminders-in-code-and-implement-custom-reminder-window/CS/CustomReminderExample/MainWindow.xaml.cs#L21

csharp
private void Scheduler_InitNewAppointment(object sender, DevExpress.Xpf.Scheduling.AppointmentItemEventArgs e) {
    AddAppointmentReminders(e.Appointment);
}

wpf-scheduler-create-reminders-in-code-and-implement-custom-reminder-window/VB/CustomReminderExample/MainWindow.xaml.vb#L25

vb
Private Sub Scheduler_InitNewAppointment(ByVal sender As Object, ByVal e As AppointmentItemEventArgs)
    Call AddAppointmentReminders(e.Appointment)
End Sub

See Also

AppointmentItemEventArgs Class

AppointmentItemEventArgs Members

DevExpress.Xpf.Scheduling Namespace