SfSchedule allows you to have customize Appointment Editor based on the requirement by overriding the default editor. This section explains how you customize the default Appointment Editor style in SfSchedule.
Customizing Appointment Editor
Create a WPF application and add the SfSchedule control in it.
Create a customized control with the field that is required to be shown in the editor and with required functions to do certain actions such as saving, deleting appointments, listening the button click events.
You can apply your own style to the above created editor control in the application as follows.
To perform actions over appointments, the above style contains Save, Delete and Close buttons. This style is applied to the NewCustomEditor and it is added in application next to Schedule control.
Using Schedule_AppointmentEditorOpening event of SfSchedule, you can avoid the opening of default Appointment Editor by setting the Cancel property to True. And you can open your own editor in this event by setting the required data to your control from the appointment information in the argument of the event.
You can refer the following code example to cancel the Appointment Editor Event and make the new editor be visible.
EditAppointment method is used to edit the saved appointment using customized Appointment Editor.
AddAppointment method is declared to add the new appointment using customized Appointment Editor based on the selected dates.
Figure 1: Customized Appointment Editor in SfSchedule
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|