UIElement.AllowDrop Property

July 28, 2014

Gets or sets a value that determines whether this UIElement can be a drop target for purposes of drag-and-drop operations.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

'Declaration
Public Property AllowDrop As Boolean
<uiElement AllowDrop="bool"/>

Property Value

Type: System.Boolean
true if this UIElement can be a drop target for purposes of drag-and-drop operations; otherwise, false. The default is false.

Dependency property identifier field: AllowDropProperty

AllowDrop controls whether various events related to being a drop target are raised or can be handled. The events only occur if AllowDrop is true on that UIElement.

For more information on routed event concepts, see Events for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2014 Microsoft