New to Telerik UI for WPF? Download free 30-day trial

Remove the Preview Drop Line from RadListBox

Environment

Product Version 2021.2.615
Product RadListBox for WPF

Description

How to hide the horizontal line (LinearDropVisual) displayed on drag over elements in RadListBox when the ListBoxDragDropBehavior is enabled.

Solution

Create an implicit style targeting the LinearDropVisual control and set its Visibility to Collapsed.

<telerik:RadListBox.Resources> 
    <Style TargetType="telerik:LinearDropVisual"> 
        <Setter Property="Visibility" Value="Collapsed" /> 
    </Style> 
</telerik:RadListBox.Resources> 
In this article