Back to Devexpress

GanttView.ProgressMapping Property

wpf-devexpress-dot-xpf-dot-gantt-dot-ganttview-b53e0eda.md

latest2.6 KB
Original Source

GanttView.ProgressMapping Property

Provides a path to a data field that stores the task’s progress. This is a dependency property.

Namespace : DevExpress.Xpf.Gantt

Assembly : DevExpress.Xpf.Gantt.v25.2.dll

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public Mapping ProgressMapping { get; set; }
vb
Public Property ProgressMapping As Mapping

Property Value

TypeDescription
Mapping

A Mapping object indicating the data field and the converter.

|

Remarks

Use the ProgressMapping property to bind the gantt item’s GanttNode.Progress property to a data field. The data field is obtained from the data source specified by the GanttControl’s ItemsSource property.

Tip

Use the Mapping.Converter property to register a value converter for a custom storing format.

You can specify mapping as a Mapping markup extension object, or as a string. The code sample below illustrates how to map gantt items’ properties to data source fields.

xaml
<dxgn:GanttControl ItemsSource="{Binding Tasks}">
    ...
    <dxgn:GanttControl.View>
        <dxgn:GanttView
            KeyFieldName="Id"
            ParentFieldName="ParentId"

            NameMapping="{dxgn:Mapping Name}"
            StartDateMapping="StartDate"
            FinishDateMapping="{dxgn:Mapping FinishDate}"
            ProgressMapping="Progress"
            BaselineStartDateMapping="BaselineStartDate"
            BaselineFinishDateMapping="BaselineFinishDate"

            PredecessorLinksPath="Links">
            <dxgn:GanttView.PredecessorLinkMappings>
                <dxgn:GanttPredecessorLinkMappings Task="Id" PredecessorTask="PredecessorId"/>
            </dxgn:GanttView.PredecessorLinkMappings>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>

See Also

Mappings

GanttView Class

GanttView Members

DevExpress.Xpf.Gantt Namespace