Back to Devexpress

GanttView.EditConnectorToolTipContentTemplate Property

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

latest2.4 KB
Original Source

GanttView.EditConnectorToolTipContentTemplate Property

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

Namespace : DevExpress.Xpf.Gantt

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

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public DataTemplate EditConnectorToolTipContentTemplate { get; set; }
vb
Public Property EditConnectorToolTipContentTemplate As DataTemplate

Property Value

TypeDescription
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 edits a connector:

xaml
<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.EditConnectorToolTipContentTemplate>
                <DataTemplate DataType="{x:Type dxgni:GanttConnectorEditToolTipInfo}">
                    <Grid>
                        <!-- The tooltip displays the "Action: " text and an end user action, 
                        like "Link editing" or "Creating new link"
                        (the GanttConnectorEditToolTipInfo.Header property value) -->
                        <TextBlock Text="{DXBinding '`Action: ` + Header'}" />
                    </Grid>
                </DataTemplate>
            </dxgn:GanttView.EditConnectorToolTipContentTemplate>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>

See Also

GanttView Class

GanttView Members

DevExpress.Xpf.Gantt Namespace