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

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

Definition

Namespace:Telerik.Windows.Controls.FileDialogs.DragDrop

Assembly:Telerik.Windows.Controls.FileDialogs.dll

Syntax:

C#
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

C#
public FileBrowserDragDropBehavior()

Methods

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

C#
public override bool CanDrop(DragDropState state)
Parameters:stateDragDropState

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.

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

C#
public override bool CanStartDrag(DragDropState state)
Parameters:stateDragDropState

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.

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

C#
public override void Drop(DragDropState state)
Parameters:stateDragDropState

DragDropState that provides context for the current operation.

Overrides: DragDropBehavior<DragDropState>.Drop(DragDropState)