Back to Devexpress

TreeViewControl.DropMarkerTemplate Property

wpf-devexpress-dot-xpf-dot-grid-dot-treeviewcontrol-056e28b0.md

latest2.0 KB
Original Source

TreeViewControl.DropMarkerTemplate Property

Gets or sets the template that defines the drop marker’s appearance. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
DataTemplate

The template that defines the drop marker’s appearance.

|

Remarks

xaml
<dxg:TreeViewControl AllowDragDrop="True"
                     ShowTargetInfoInDragDropHint="True">
    <dxg:TreeViewControl.DropMarkerTemplate>
        <DataTemplate>
            <Grid IsHitTestVisible="False" Margin="0,-3,0,-3">
                <Border Height="6" 
                        Background="Orange" 
                        BorderBrush="Gray" 
                        BorderThickness="1" 
                        VerticalAlignment="Bottom"/>
            </Grid>
        </DataTemplate>
    </dxg:TreeViewControl.DropMarkerTemplate>
</dxg:TreeViewControl>

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

See Also

TreeViewControl Class

TreeViewControl Members

DevExpress.Xpf.Grid Namespace