Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GanttView.DrawNewTaskToolTipContentTemplate Property

Gets or sets a data template used to render a content of a tooltip displayed while an end user creates a new task in the Gantt area. This is a dependency property.

Namespace: DevExpress.Xpf.Gantt

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

NuGet Package: DevExpress.Wpf.Gantt

#Declaration

public DataTemplate DrawNewTaskToolTipContentTemplate { get; set; }

#Property Value

Type Description
DataTemplate

A DataTemplate object that defines the tooltip appearance.

#Remarks

The code sample below demonstrates how to change a tooltip displayed when an end user draws a new task:

<Window ...
    xmlns:dxgn="http://schemas.devexpress.com/winfx/2008/xaml/gantt"
    xmlns:dxgni="http://schemas.devexpress.com/winfx/2008/xaml/gantt/internal">

...
<dxgn:GanttControl ...>
    <dxgn:GanttControl.View>
        <dxgn:GanttView ...>
            <dxgn:GanttView.DrawNewTaskToolTipContentTemplate>
                <DataTemplate DataType="{x:Type dxgni:GanttTaskEditToolTipInfo}">
                    <Grid>
                        <!-- The tooltip displays the "Task: " text and a task header
                        (the GanttTaskEditToolTipInfo.Header property value) -->
                        <TextBlock Text="{DXBinding '`Task: ` + Header'}" />
                    </Grid>
                </DataTemplate>
            </dxgn:GanttView.DrawNewTaskToolTipContentTemplate>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>
See Also