Skip to content

Dustbin - Single Target

The simplest setup: a single BdndDropTarget that accepts one item type. Drag a box onto the dustbin and it reacts to hover (IsOver) and records the drop (OnDrop). Every draggable takes every input: the mouse, a finger held on a box for a moment, and the keyboard - Tab to a box, Space to pick it up, an arrow key to move it over the bin and Space to drop it. This bin has no Label, so a screen reader names it by its place, "drop target 1 of 1"; the other pages name their targets.

Drag a box here
Glass
Banana
Paper
An unhandled error has occurred. Reload 🗙