Class
FileBrowserDragDropBehavior

Defines a DragDropBehavior for drag-drop operations in a DialogWindowBase.

Definition

Namespace:Telerik.Windows.Controls.FileDialogs.DragDrop

Assembly:Telerik.Windows.Controls.FileDialogs.dll

Syntax:

cs-api-definition
public class FileBrowserDragDropBehavior : DragDropBehavior<DragDropState>, IDragDropBehavior<DragDropState>

Inheritance: objectDragDropBehavior<DragDropState>FileBrowserDragDropBehavior

Implements: IDragDropBehavior<DragDropState>

Inherited Members DragDropBehavior<DragDropState>.GetDragDropEffects(DragDropState)DragDropBehavior<DragDropState>.CoerceDraggedItems(DragDropState)DragDropBehavior<DragDropState>.DragDropCanceled(DragDropState)DragDropBehavior<DragDropState>.DragDropCompleted(DragDropState)

Constructors

FileBrowserDragDropBehavior()

Declaration

cs-api-definition
public FileBrowserDragDropBehavior()

Methods

CanDrop(DragDropState)

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

Declaration

cs-api-definition
public override bool CanDrop(DragDropState state)

Parameters

state

DragDropState

DragDropState that provides context for the current operation.

Returns

bool

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

Overrides DragDropBehavior<DragDropState>.CanDrop(DragDropState)

Remarks

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

CanStartDrag(DragDropState)

Returns a value specifying whether the drag operation can be started.

Declaration

cs-api-definition
public override bool CanStartDrag(DragDropState state)

Parameters

state

DragDropState

DragDropState that provides context for the current operation.

Returns

bool

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

Overrides DragDropBehavior<DragDropState>.CanStartDrag(DragDropState)

Remarks

This method is called only in the context of the drag source control.

Drop(DragDropState)

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

Declaration

cs-api-definition
public override void Drop(DragDropState state)

Parameters

state

DragDropState

DragDropState that provides context for the current operation.

Overrides DragDropBehavior<DragDropState>.Drop(DragDropState)