I​Drop​Target​Provider I​Drop​Target​Provider I​Drop​Target​Provider Interface

Definition

Enables a Microsoft UI Automation element to describe itself as an element that can receive a drop of a dragged element as part of a drag-and-drop operation. Implement this interface in order to support the capabilities that an automation client requests with a GetPattern call and PatternInterface.DropTarget.

public : interface IDropTargetProviderpublic interface IDropTargetProviderPublic Interface IDropTargetProvider
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

A drop target reports the action if the user drops the dragged item on the peer's owner as drop target. These action results are called effects. The effects are descriptive strings, not visual effects in a UI and design sense. For more info on what this pattern is for, see DropTarget Control Pattern.

IDropTargetProvider is implemented by the existing Windows Runtime automation peers for a ListView or GridView (ListViewAutomationPeer, GridViewAutomationPeer ). This supports the Windows Runtime scenario of dragging list items so that they can be reordered. There are a limited number of Windows Runtime classes that can be a drag source; these sources support the IDragProvider pattern for automation purposes.

Use DropTargetPatternIdentifiers if you want to reference the IDropTargetProvider pattern properties from control code when you fire automation events or call RaisePropertyChangedEvent.

Properties

DropEffect DropEffect DropEffect

Gets a string that indicates what will happen when the item is dropped.

public : PlatForm::String DropEffect { get; }public string DropEffect { get; }Public ReadOnly Property DropEffect As string
Value
PlatForm::String string string

A string that indicates what will happen when the item is dropped.

Attributes

Remarks

This property describes the default effect that happens when a grabbed element is dropped on a target, such as moving or copying the element. This property can be a short string such as "move", or a longer one such as "insert into Main group". The string is always localized.

DropEffects DropEffects DropEffects

Gets an array of strings that enumerates possible drop effects when this item is dropped.

public : PlatForm::String[] DropEffects { get; }public string[] DropEffects { get; }Public ReadOnly Property DropEffects As string[]
Value
PlatForm::String[] string[] string[]

An array of strings that enumerates possible drop effects when this item is dropped.

Attributes

See Also