New to Telerik UI for WPFStart a free 30-day trial

Represents the provider for the LinearDropVisual control. This is the default drop visual provider for the drag and drop operations in RadListBox.

Definition

Namespace:Telerik.Windows.Controls.DragDrop

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class LinearDropVisualProvider : IDropVisualProvider

Inheritance: objectLinearDropVisualProvider

Implements: IDropVisualProvider

Constructors

C#
public LinearDropVisualProvider()

Methods

CreateDropVisual()

FrameworkElement

When overridden in a derived class allows customization of the drop visual.

C#
public virtual FrameworkElement CreateDropVisual()
Returns:

FrameworkElement

Implements: IDropVisualProvider.CreateDropVisual()

When overridden in derived class returns the margin for the container when the dragged element moves above it.

C#
public virtual Thickness GetDropCueHighlightMargin(RadListBoxItem container, Panel panel, FrameworkElement dropVisual)
Parameters:containerRadListBoxItempanelPaneldropVisualFrameworkElementReturns:

Thickness

Implements: IDropVisualProvider.GetDropCueHighlightMargin(RadListBoxItem, Panel, FrameworkElement)

When overridden in derived class returns the location which is used for render transforming the drop visual depending on the ItemDropPosition.

C#
public virtual Point GetLocation(RadListBoxItem container, Panel panel, ItemDropPosition dropPosition)
Parameters:containerRadListBoxItempanelPaneldropPositionItemDropPositionReturns:

Point

Implements: IDropVisualProvider.GetLocation(RadListBoxItem, Panel, ItemDropPosition)

When overridden in derived class returns the location which is used for render transforming the drop visual.

C#
public virtual Point GetLocation(RadListBoxItem container, Panel panel)
Parameters:containerRadListBoxItempanelPanelReturns:

Point

Implements: IDropVisualProvider.GetLocation(RadListBoxItem, Panel)

When overridden in derived class indicates that visualizing the drop cue operation is finished.

C#
public virtual void VisualizeDropPlaceholderEnded(RadListBoxItem container, Panel panel, object dataItem, FrameworkElement dropVisual)
Parameters:containerRadListBoxItempanelPaneldataItemobjectdropVisualFrameworkElement

Implements: IDropVisualProvider.VisualizeDropPlaceholderEnded(RadListBoxItem, Panel, object, FrameworkElement)

When overridden in derived class indicates that visualizing the drop cue operation is started.

C#
public virtual void VisualizeDropPlaceholderStarted(RadListBoxItem container, Panel panel, object dataItem, FrameworkElement dropVisual)
Parameters:containerRadListBoxItempanelPaneldataItemobjectdropVisualFrameworkElement

Implements: IDropVisualProvider.VisualizeDropPlaceholderStarted(RadListBoxItem, Panel, object, FrameworkElement)