AllowDrop Property

UIElement3D.AllowDrop Property

 

Gets or sets a value indicating whether this element can be used as the target of a drag-and-drop operation.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public bool AllowDrop { get; set; }

Property Value

Type: System.Boolean

true if this element can be used as the target of a drag-and-drop operation; otherwise, false. The default value is false.

Drag-and-drop operations are not enabled by default, and must be enabled deliberately by setting AllowDrop to true. Beyond this basic setting, drag-and-drop behavior is entirely implementation specific and is not defined by UIElement3D or any other base element class. Certain controls, for example, RichTextBox, do have a default behavior. For more information on drag and drop, see Drag and Drop Overview.

AllowDrop is introduced in the .NET Framework version 3.5. For more information, see .NET Framework Versions and Dependencies.

Identifier field

AllowDropProperty

Metadata properties set to true

None

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft