wpf-401590-controls-and-libraries-scheduler-create-and-edit-appointments.md
Users can create a new appointment in one of the following ways:
The Appointment Window allows users to edit appointment settings. Users can double-click an appointment or select an appointment and press Enter to invoke the Appointment Window. You can use the ShowAppointmentWindow method to invoke the Appointment Window in code.
The Scheduler control also allows users to modify appointments in the following ways:
Change the label and status in the ribbon or appointment’s context menu.
Click the selected appointment to edit its subject.
Drag or resize an appointment to change its start or end time.
Replace an exception in a recurring series with a regular occurrence by selecting the Restore Default State context menu item.
Tip
When the user drops an appointment on the All-Day area, its SchedulerItemBase.AllDay property is set to true. When the user drags the appointment back to the time cells area, its initial SchedulerItemBase.Duration value is not restored, and instead it is set to fill a time cell.
The Reminder Window allows users to edit reminder alerts.
Users can remove the selected appointments in any of the following ways:
Use the following API to specify which actions users are allowed to perform and implement custom logic:
|
Action
|
End-User Capability
|
Mechanism
| | --- | --- | --- | |
Create new appointments
|
SchedulerControl.AllowAppointmentCreate
SchedulerControl.CustomAllowAppointmentCreate
|
SchedulerControl.AppointmentAdding
SchedulerControl.AppointmentAdded
| |
Edit appointments
|
SchedulerControl.AllowAppointmentEdit
SchedulerControl.CustomAllowAppointmentEdit
|
SchedulerControl.AppointmentEditing
SchedulerControl.AppointmentEdited
| |
Resize appointments
|
SchedulerControl.AllowAppointmentResize
SchedulerControl.CustomAllowAppointmentResize
|
SchedulerControl.AppointmentEditing
SchedulerControl.AppointmentEdited
The Resize Appointments article covers the resize-specific events.
| |
Drag appointments
|
SchedulerControl.AllowAppointmentDrag
SchedulerControl.CustomAllowAppointmentDrag
|
SchedulerControl.AppointmentEditing
SchedulerControl.AppointmentEdited
The Drag and Drop Appointments article covers the drag-drop specific events.
| |
Restore exceptions in a recurring series
|
SchedulerControl.AllowAppointmentEdit
SchedulerControl.CustomAllowAppointmentEdit
|
SchedulerControl.AppointmentRestoring
SchedulerControl.AppointmentRestored
| |
Remove appointments
|
SchedulerControl.AllowAppointmentDelete
SchedulerControl.CustomAllowAppointmentDelete
|
SchedulerControl.AppointmentRemoving
SchedulerControl.AppointmentRemoved
|
See Also
How to: Validate Appointment Items when the User Is Adding or Editing Them