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.v24.2.Core.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
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:
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>