Class
LinearDropVisualProvider

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:

cs-api-definition
public class LinearDropVisualProvider : IDropVisualProvider

Inheritance: objectLinearDropVisualProvider

Implements: IDropVisualProvider

Constructors

LinearDropVisualProvider()

Declaration

cs-api-definition
public LinearDropVisualProvider()

Methods

CreateDropVisual()

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

Declaration

cs-api-definition
public virtual FrameworkElement CreateDropVisual()

Returns

FrameworkElement

Implements IDropVisualProvider.CreateDropVisual()

GetDropCueHighlightMargin(RadListBoxItem, Panel, FrameworkElement)

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

Declaration

cs-api-definition
public virtual Thickness GetDropCueHighlightMargin(RadListBoxItem container, Panel panel, FrameworkElement dropVisual)

Parameters

container

RadListBoxItem

panel

Panel

dropVisual

FrameworkElement

Returns

Thickness

Implements IDropVisualProvider.GetDropCueHighlightMargin(RadListBoxItem, Panel, FrameworkElement)

GetLocation(RadListBoxItem, Panel)

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

Declaration

cs-api-definition
public virtual Point GetLocation(RadListBoxItem container, Panel panel)

Parameters

container

RadListBoxItem

panel

Panel

Returns

Point

Implements IDropVisualProvider.GetLocation(RadListBoxItem, Panel)

GetLocation(RadListBoxItem, Panel, ItemDropPosition)

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

Declaration

cs-api-definition
public virtual Point GetLocation(RadListBoxItem container, Panel panel, ItemDropPosition dropPosition)

Parameters

container

RadListBoxItem

panel

Panel

dropPosition

ItemDropPosition

Returns

Point

Implements IDropVisualProvider.GetLocation(RadListBoxItem, Panel, ItemDropPosition)

VisualizeDropPlaceholderEnded(RadListBoxItem, Panel, object, FrameworkElement)

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

Declaration

cs-api-definition
public virtual void VisualizeDropPlaceholderEnded(RadListBoxItem container, Panel panel, object dataItem, FrameworkElement dropVisual)

Parameters

container

RadListBoxItem

panel

Panel

dataItem

object

dropVisual

FrameworkElement

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

VisualizeDropPlaceholderStarted(RadListBoxItem, Panel, object, FrameworkElement)

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

Declaration

cs-api-definition
public virtual void VisualizeDropPlaceholderStarted(RadListBoxItem container, Panel panel, object dataItem, FrameworkElement dropVisual)

Parameters

container

RadListBoxItem

panel

Panel

dataItem

object

dropVisual

FrameworkElement

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