New to Telerik UI for WinForms? Start a free 30-day trial

Defines the basic methods of a generic FileDialogs DragDropBehavior.

Definition

Namespace:Telerik.WinControls.FileDialogs.DragDrop

Assembly:Telerik.WinControls.UI.dll

Type Parameters:

TState

The state type.

Syntax:

C#
public abstract class DragDropBehavior<TState> where TState : DragDropState

Inheritance: objectDragDropBehavior<TState>

Derived Classes: FileBrowserDragDropBehavior

Constructors

C#
protected DragDropBehavior()

Methods

Returns a value specifying whether the current drag operation can be completed.

C#
public virtual bool CanDrop(TState state)
Parameters:stateTState

DragDropState that provides context for the current operation.

Returns:

bool

True if the drag operation can be completed, otherwise false.

This method is called only in the context of the drop target control.

Completes the drop operation. This method is called only in the context of the drop target control.

C#
public virtual void Drop(TState state)
Parameters:stateTState

DragDropState that provides context for the current operation.

Returns the DragDropEffects for the current drag drop operation. The return value affects the mouse cursor.

C#
public virtual DragDropEffects GetDragDropEffects(TState state)
Parameters:stateTState

DragDropState that provides context for the current operation.

Returns:

DragDropEffects

This method is called only in the context of the drop target control.