I need to have more than one appointment type, let's them be AppX and AppY, both derived from your Appointment class. One may have properties that the other does not, but at a minimum both have a subject, a start time and end time.
The AppointmentsSource property being bound to a Collection of Appointment objects, I can thus add AppX and AppY objects to it.
So far, so good. Each appointment type is displayed in the schedule the way I want (I use a different template for each type).
Now I want to be able to show a create/edit dialog that is customized to each type of appointment. DialogX and DialogY would be associated to AppX and AppY, respectively. And if the user double-clicks on an empty slot, I want to create an appointment of type AppX through DialogX.
This is where I'm stuck.
I thought of hooking to the AppointmentCreating and AppointmentEditing events, and show the appropriate dialog there. Is this the correct technique?
Or would you not happen by any chance to have a sample that illustrates how this could be done?