Table of Contents

Constructor DndContextSettings

Namespace
Velvet
Assembly
Velvet.Docs.dll

DndContextSettings(Action<DragStartArgs>?, Action<DragOverArgs>?, Action<DragEndArgs>?, Action<DragCancelArgs>?, DndCollisionDetection?, DragActivation?)

Drag-and-drop scope configuration. All callbacks are optional; CollisionDetection null means RectIntersection; Activation is the scope-wide default a per-draggable override wins over.

public DndContextSettings(Action<DragStartArgs>? OnDragStart = null, Action<DragOverArgs>? OnDragOver = null, Action<DragEndArgs>? OnDragEnd = null, Action<DragCancelArgs>? OnDragCancel = null, DndCollisionDetection? CollisionDetection = null, DragActivation? Activation = null)

Parameters

OnDragStart Action<DragStartArgs>
OnDragOver Action<DragOverArgs>
OnDragEnd Action<DragEndArgs>
OnDragCancel Action<DragCancelArgs>
CollisionDetection DndCollisionDetection
Activation DragActivation