DragDropHelper.GetDroppedObject 方法

定义

注意

This method does not support dropping multiple items. Use "public static IEnumerable<object> GetDroppedObjects(DependencyObject dropTarget, DragEventArgs e, EditingContext context)" instead.

检索拖放操作中正在放置的对象。

public:
 static System::Object ^ GetDroppedObject(System::Windows::DependencyObject ^ dropTarget, System::Windows::DragEventArgs ^ e, System::Activities::Presentation::EditingContext ^ context);
public static object GetDroppedObject (System.Windows.DependencyObject dropTarget, System.Windows.DragEventArgs e, System.Activities.Presentation.EditingContext context);
[System.Obsolete("This method does not support dropping multiple items. Use "public static IEnumerable<object> GetDroppedObjects(DependencyObject dropTarget, DragEventArgs e, EditingContext context)" instead.")]
public static object GetDroppedObject (System.Windows.DependencyObject dropTarget, System.Windows.DragEventArgs e, System.Activities.Presentation.EditingContext context);
static member GetDroppedObject : System.Windows.DependencyObject * System.Windows.DragEventArgs * System.Activities.Presentation.EditingContext -> obj
[<System.Obsolete("This method does not support dropping multiple items. Use "public static IEnumerable<object> GetDroppedObjects(DependencyObject dropTarget, DragEventArgs e, EditingContext context)" instead.")>]
static member GetDroppedObject : System.Windows.DependencyObject * System.Windows.DragEventArgs * System.Activities.Presentation.EditingContext -> obj
Public Shared Function GetDroppedObject (dropTarget As DependencyObject, e As DragEventArgs, context As EditingContext) As Object

参数

dropTarget
DependencyObject

拖动的位置。

e
DragEventArgs

拖动事件数据。

context
EditingContext

编辑上下文。

返回

已放置的对象。

属性

适用于