Skip to main content
A newer version of this page is available. .

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.2.Core.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core

Declaration

public DataTemplate DragDropHintTemplate { get; set; }

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