IDropTargetProvider IDropTargetProvider IDropTargetProvider IDropTargetProvider 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 IDropTargetProvider
struct winrt::Windows::UI::Xaml::Automation::Provider::IDropTargetProvider
public interface IDropTargetProvider
Public 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 DropEffect

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

DropEffects DropEffects DropEffects DropEffects

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

See also