Version

Showing/Hiding Non-Work Days/Hours Background

Topic Overview

Purpose

This topic explains how to configure highlighting of nonworking days/hours using the xamGantt™ control.

Required background

The following topics are prerequisites to understanding this topic:

Topic Purpose

This topic describes how to add the xamGantt control to a page.

In this topic

This topic contains the following sections:

Showing/Hiding Non-Work Days/Hours Background

Overview

By default, nonworking days appear highlighted in the chart section of the xamGantt control.

There are three configuration options for highlighting nonworking days:

  • nonworking days with highlighting disabled

  • highlighting of the entire timescale interval provided there are no working times intersecting with that interval

  • highlighting all the nonworking time regardless of whether or not they intersect with the timescale intervals

Property settings

The following table maps the desired configuration to property settings.

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

Configure the highlighting of the non-working hours and days

Example

The screenshot below demonstrates the highlighting applied to nonworking days and hours as a result of the following settings:

Property Value

NonWorkingTimeHighlightStyle

Showing Hiding Non Work Days Hours Background 1.png

In XAML:

<ig:XamGantt x:Name="gantt"
             Project="{Binding Project}">
    <ig:XamGantt.ViewSettings>
        <ig:ProjectViewSettings NonWorkingTimeHighlightStyle="ActualNonWorkingHours" />
    </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 ProjectViewSettings class and its configurable aspects.