Version

Appointment (XamScheduler)

Purpose

This topic explains the appointment activity type.

Required Background

Topic Purpose

This topic provides an overview of the XamScheduler control.

This topic explains how to bind the control to a data source using ScheduleListDataSource.

Overview

The activities are used to represent an event which starts at a specific time and ends at a specific time. These activities are represented by the Appointment type which derives from the abstract base ActivityBase type and encapsulate all the associated information with this event.

Activities occur during a range of time with a duration of several hours, several days or even more.

Main Properties

The following table lists the Appointment's key properties and their purpose:

Property Purpose

This string type property is used as short description of the activity. It is the main information shown in the control’s views and therefor used to distinguish a specific activity amongst the other activities.

This string type property is used to store the location where the activity should take place.

This DateTime type property contains the start date and time of the activity.

End

This DateTime type property contains the end date and time of the activity.

Id

This string type property is used to distinguish this activity amongst all other activities. It must be unique.

This string type property is used to associate the current activity with a resource.

This read only ScheduleResource type property is used to obtain the resource associate with the current activity.

Code Example

The following code example demonstrates how to create an appointment:

In C#:

Appointment appointment1 = new Appointment();
appointment1.Subject = "Team Meeting";
appointment1.Location = "Conf. Room #3";
appointment1.Start = new DateTime(today.Year, today.Month, today.Day, 10, 0, 0);
appointment1.End = new DateTime(today.Year, today.Month, today.Day, 10, 30, 0);

Related Topics

Topic Purpose

This topic explains the repetitive behavior of the activities.

This topic provides information about the resources concept of the XamScheduler control.