Version

Configuring Milestones

Topic Overview

Purpose

This topic explains how you create a milestone using the xamGantt™ control.

Required background

The following topics are prerequisites to understanding this topic:

Topic Purpose

This topic describes how the xamGantt control can be bound to data via Project property.

In this topic

This topic contains the following sections:

Creating a Milestone

Overview

The milestone is a special project task with a duration of zero days.

Usually, milestones marks a major event or an important deliverable in the project plan.

You configure a task to be a milestone either:

The milestone is indicated both in the grid and chart xamGantt section.

  • In the grid section, the Milestone column indicates whether or not a task is a milestone

  • In the chart section, the milestone appears as a diamond symbol

Property settings

The following table maps the desired configuration to property settings.

In order to: Use this property: And set it to:

Set a milestone

IsMilestone

true

Duration

TimeSpan.Zero

Example

The example below demonstrates how to set a milestone:

Configuring Milestones 1.png

In C#:

XamGantt gantt = new XamGantt();
Project project = new Project();
ProjectTask task = new ProjectTask();
task.TaskName = "Milestone";
task.IsManual = false;
//Setting a milestone
task.IsMilestone = true;
task.Start = DateTime.Today.ToUniversalTime();
project.RootTask.Tasks.Add(task);
gantt.Project = project;

In Visual Basic:

Dim gantt As New XamGantt()
Dim project As New Project()
Dim task As New ProjectTask()
task.TaskName = "Milestone"
task.IsManual = False
'Setting a milestone
task.IsMilestone = True
task.Start = DateTime.Today.ToUniversalTime()
project.RootTask.Tasks.Add(task)
gantt.Project = project

Related Topics

The following topics provide additional information related to this topic.

Topic Purpose

The topics in this group explain the xamGantt ProjectTask class, its configurable aspects and the main features it provides.