An appointment is visualized using different controls depending on the current view, an operation mode (drag-and-drop) and whether the appointment is an all-day appointment (the AppointmentItem.AllDay property is set to true).
The visual appointment controls' class diagram is shown below.
An appointment is visualized using a default content presenter which comprises several presenters. The AppointmentControl properties specify their visibility, as illustrated in the following picture:
Use content presenters in a custom appointment data template described in the next section.
This code snippet sets the AppointmentControl properties to display the appointment's start and end time, location and description. It also demonstrates how to display an image in the appointment's bottom right corner.