DataViewBase.DragDropHintTemplate Property

Gets or sets the template that defines the drag-and-drop hint's presentation. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.Core.dll

Declaration

public DataTemplate DragDropHintTemplate { get; set; }
Public Property DragDropHintTemplate As DataTemplate

Property Value

Type Description
DataTemplate

A System.Windows.DataTemplate object that defines the drag-and-drop hint's presentation.

Remarks

You can customize the drag-and-drop hint's appearance. The images below show default and custom hints:

DragDropIndicationHintTemplate

Specify the DragDropHintTemplate property to customize the hint's appearance. The binding source (DataContext of the template elements) for this template is the DragDropHintData class.

The following code sample demonstrates how to show dragged records' names in the drag-and-drop hint using the ListBoxEdit control:

<dxg:TableView AllowDragDrop="True">
   <dxg:TableView.DragDropHintTemplate>
      <DataTemplate>
         <dxe:ListBoxEdit ItemsSource="{Binding Records}" />
      </DataTemplate>
   </dxg:TableView.DragDropHintTemplate>
</dxg:TableView>
See Also