We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add additional entities to the SheduleAppointment class?

Platform: WPF |
Control: SfSchedule
Tags: sfschedule


You can add additional entities to the ScheduleAppointment class in the schedule control. This article explains how to add additional entities to the ScheduleAppointment class in the schedule control.

Adding additional entities in the ScheduleAppointment class:

  1. Create a WPF application and add Schedule control to it.


  1. Create the custom appointment class with the needed property. We have used the below code snippet to add custom appointment class with String_ID property.


  1. In the above code we have inherited the custom appointment class from the ScheduleAppointment class. So that, we can use the existing ScheduleAppointment’s properties as well as the additional added property in the CustomAppointment class.
  2. Create ScheduleAppointmentCollection property and add appointments by using CustomAppointment class. We have used below code snippet to add appointment in ScheduleAppointmentColletion.


  1. Now bind the itemsource with ScheduleAppointmentColletion property and map the CustomAppointment class properties using AppointmentMapping property in the schedule control. We have used below code snippet for mapping the CustomAppointment class.




The following screenshot displays the appointments with additional entities added to the ScheduleAppointment.

Figure 1: Schedule appointment with additional entity

Sample Link:







2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment
David Stringer
Jul 27, 2016
HI There I am doing something similar but instead i am passing a primary key in form an SQL Database (int EventID). The issue i have is that i can't seem to retrieve the primary key back from the appointmentEditorClosedEventArgs? the object (arg) returned is bound to ScheduleAppointment not CustomAppointment. Am i doing something wrong here? I need the primary key returned so i can save changed to my DB. Thanks in advance Reply
Nov 19, 2020

Hello, I have copyed this code to my WPF project and in mine Schedule it doesn't display additional added entities. Is there maybe something more I need to do? Thanks in advance.


Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile