Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeViewControl.DragDropHintTemplate Property

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

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public DataTemplate DragDropHintTemplate { get; set; }

#Property Value

Type Description
DataTemplate

The template that defines the drag-and-drop hint’s appearance.

#Remarks

The following code sample uses the ListBoxEdit control to show names of dragged records in the drag-and-drop hint:

<Window ...
        xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" 
        xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
  <dxg:TreeViewControl ...
                       TreeViewFieldName="Name" 
                       SelectionMode="Row"
                       AllowDragDrop="True">
      <dxg:TreeViewControl.DragDropHintTemplate>
          <DataTemplate>
              <dxe:ListBoxEdit ItemsSource="{Binding Records}" 
                               DisplayMember="Name"/>
          </DataTemplate>
      </dxg:TreeViewControl.DragDropHintTemplate>
  </dxg:TreeViewControl>
</Window>

For information about drag-and-drop operations, refer to the following DevExpress WPF Grid help topic: Drag-and-Drop.

See Also