wpf-devexpress-dot-xpf-dot-gantt-dot-ganttview-7474dbce.md
Provides a path to a data field that stores the task baseline’s duration. This is a dependency property.
Namespace : DevExpress.Xpf.Gantt
Assembly : DevExpress.Xpf.Gantt.v25.2.dll
NuGet Package : DevExpress.Wpf.Gantt
public Mapping BaselineDurationMapping { get; set; }
Public Property BaselineDurationMapping As Mapping
| Type | Description |
|---|---|
| Mapping |
A Mapping object indicating the data field and the converter.
|
Use the BaselineDurationMapping property to bind the Gantt item’s GanttNode.BaselineDuration 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 string. The code sample below illustrates how to map Gantt items’ properties to data source fields.
<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"
BaselineDurationMapping="BaselineDuration"
PredecessorLinksPath="Links">
<dxgn:GanttView.PredecessorLinkMappings>
<dxgn:GanttPredecessorLinkMappings Task="Id" PredecessorTask="PredecessorId"/>
</dxgn:GanttView.PredecessorLinkMappings>
</dxgn:GanttView>
</dxgn:GanttControl.View>
</dxgn:GanttControl>
Note
The task baseline’s duration means the working time span.
Example
You have the following working time rules:
In this case, the task baseline duration is 24 working time hours (3 working days).
See Also