This example demonstrates how to easily set the initial SelectedAppointments property to a collection of Appointments using an attached property.