Skip to main content

GanttView.TaskMoveToolTipContentTemplate Property

Gets or sets a data template used to render the content of a tooltip displayed while an end user edits a task’s start date in the Gantt area. This is a dependency property.

Namespace: DevExpress.Xpf.Gantt

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

NuGet Package: DevExpress.Wpf.Gantt

Declaration

public DataTemplate TaskMoveToolTipContentTemplate { get; set; }

Property Value

Type Description
DataTemplate

A DataTemplate object that defines the tooltip appearance.

Remarks

The DevExpress.Xpf.Gantt.Native.GanttTaskEditToolTipInfo class is the data context for the TaskMoveToolTipContentTemplate.

The code sample below demonstrates how to change a tooltip displayed when an end user moves a 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.TaskMoveToolTipContentTemplate>
                <DataTemplate DataType="{x:Type dxgni:GanttTaskEditToolTipInfo}">
                    <StackPanel>
                        <TextBlock Text="{DXBinding '`Task: ` + Header'}" />
                        <TextBlock Text="{DXBinding '`Start: ` + Content.Start'}"/>
                        <TextBlock Text="{DXBinding '`Finish: ` + Content.End'}"/>
                    </StackPanel>
                </DataTemplate>
            </dxgn:GanttView.TaskMoveToolTipContentTemplate>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>
See Also