Version

Configuring Critical Slack Limit

Topic Overview

Purpose

This topic explains how to configure the critical slack limit for a project task using the xamGantt™ control.

Required background

The following topics are prerequisites to understanding this topic:

Topic Purpose

This topic describes how the xamGantt control is bound to an arbitrary tasks collection via ListBackedProject.

In this topic

This topic contains the following sections:

Configuring Critical Slack Limit

Overview

The xamGantt control’s scheduling engine calculates the critical state for a ProjectTask based on whether the task is considered to be the critical path for the project.

Project tasks with zero days of slack are considered critical; however, you can specify a custom configuration of the slack limit.

The ProjectSettings CriticalSlackLimit property determines the amount of slack a task requires to be critical, and stores the task’s critical state in the ProjectTask IsCritical read-only property.

In order to highlight the project critical tasks using the xamGantt control user interface, use the ProjectViewSettings AreCriticalTasksHighlighted property.

Property settings

The following table maps the desired configuration to property settings.

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

Specify task’s critical slack limit

int

Highlight the project’s critical tasks

bool

Example

The screen shot below illustrates how critical tasks are determined and highlighted according to the critical slack limit; achieved using the following settings:

Property Value

CriticalSlackLimit

2

AreCriticalTasksHighlighted

True

Configuring Critical Slack Limit 1.png

In XAML:

<ig:ListBackedProject x:Name="dataProvider"
                      TaskItemsSource="{Binding Tasks}">
    <!-- Add ProjectTask Property Mappings Here -->
    <!-- Specify Project Settings Here -->
    <ig:ListBackedProject.Settings>
        <ig:ProjectSettings CriticalSlackLimit="2" />
    </ig:ListBackedProject.Settings>
</ig:ListBackedProject>
<ig:XamGantt x:Name="gantt"
             Project="{Binding ElementName=dataProvider}">
    <ig:XamGantt.ViewSettings>
        <!-- Highlight the critical tasks -->
        <ig:ProjectViewSettings AreCriticalTasksHighlighted="True" />
    </ig:XamGantt.ViewSettings>
</ig:XamGantt>

Related Topics

The following topics provide additional information related to this topic.

Topic Purpose

This topic gives an overview of the xamGantt ProjectSettings class and its configurable aspects.