Commands in WPF Schedule (Classic)
5 May 20211 minute to read
Operations that are done by context menu can be performed using Schedule commands. The following actions of context menu can be handled by executing schedule commands in the application.
- Adding new appointment
- Editing appointment
- Deleting appointment
- Copying appointment
- Pasting appointment
- Drag and drop appointment
AddNewCommand
Using AddNewCommand of ScheduleCommands, a new appointment can be added in SfSchedule.
ScheduleCommands.AddNewCommand.Execute(this.Schedule);
EditCommand
Using EditCommand of ScheduleCommands, an existing appointment of SfSchedule can be modified.
ScheduleCommands.EditCommand.Execute(this.Schedule);
DeleteCommand
DeleteCommand can be used to delete an appointment in SfSchedule.
ScheduleCommands.DeleteCommand.Execute(this.Schedule);
CopyCommand
Using CopyCommand of ScheduleCommands, a schedule appointment can be copied.
ScheduleCommands.CopyCommand.Execute(this.Schedule);
PasteCommand
Using PasteCommand of ScheduleCommands, a copied schedule appointment can be pasted in SfSchedule.
ScheduleCommands.PasteCommand.Execute(this.Schedule);
DragAndDropCommand
Using DragAndDropCommand of ScheduleCommands, an appointment can be dragged and dropped from one timeslot to another timeslot. Resizing operation can also be performed using this command.
ScheduleCommands.DragAndDropCommand.Execute(this.Schedule);