Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DropTarget Control Pattern

Provides guidelines and conventions for implementing the DropTarget control pattern by using IDropTargetProvider, including information about properties and methods. The DropTarget control pattern is used to support controls that can be the target of a drag-and-drop operation.

Implementation Guidelines and Conventions

When implementing the DropTarget control pattern, use the following guidelines and conventions:

Required Members for IDropTargetProvider

The following properties and methods are required for implementing the IDropTargetProvider interface.

Required membersMember typeNotes
DropTargetEffect PropertyNone
DropTargetEffects PropertyRequired if the drop target supports more than one possible drop effect.
UIA_DropTarget_DragEnterEventIdEventNone
UIA_DropTarget_DragLeaveEventIdEventNone
UIA_DropTarget_DroppedEventIdEventNone

 

Related topics

Control Types and Their Supported Control Patterns
Drag Control Pattern
UI Automation Control Patterns Overview
UI Automation Tree Overview
UI Automation Support for Drag-and-Drop

 

 

Community Additions

Show:
© 2015 Microsoft