GanttView for WPF | ComponentOne
Task Elements / Task Mode
In This Topic
    Task Mode
    In This Topic

    Task Mode indicates whether a task is scheduled manually or automatically. It allows you to choose how much control you want to have over a project's task scheduling. In GanttView, you can set task mode by using Mode property of the Task class. The Mode property uses TaskMode enumeration to change the task mode by setting one of the following values:

    The following code illustrates how to set the Mode property for a task. This example uses the sample created in Quick Start.

    C#
    Copy Code
    t.Mode = TaskMode.Automatic;
    

    Besides this, task modes can be set at runtime through the Task Information dialog box, which can be accessed by clicking the Task Information button from the Toolbar. For more information, see Toolbar.