Приложения для Windows
EN
Данное содержимое не доступно на вашем языке, используйте версию на английском языке.

UIElement.AllowDrop Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

public bool AllowDrop { get; set; }
<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

Показ:
© 2016 Microsoft