DragGestureData 构造函数 (EditingContext, ModelItem, ModelItem, Visual, Point, Point, DragDropEffects, IDataObject)

[本文档仅供预览,在以后的发行版中可能会发生更改。包含的空白主题用作占位符。]

初始化 DragGestureData 类的新实例。

命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public Sub New ( _
    context As EditingContext, _
    sourceModel As ModelItem, _
    targetModel As ModelItem, _
    coordinateReference As Visual, _
    startPosition As Point, _
    currentPosition As Point, _
    allowedEffects As DragDropEffects, _
    data As IDataObject _
)
public DragGestureData(
    EditingContext context,
    ModelItem sourceModel,
    ModelItem targetModel,
    Visual coordinateReference,
    Point startPosition,
    Point currentPosition,
    DragDropEffects allowedEffects,
    IDataObject data
)
public:
DragGestureData(
    EditingContext^ context, 
    ModelItem^ sourceModel, 
    ModelItem^ targetModel, 
    Visual^ coordinateReference, 
    Point startPosition, 
    Point currentPosition, 
    DragDropEffects allowedEffects, 
    IDataObject^ data
)
new : 
        context:EditingContext * 
        sourceModel:ModelItem * 
        targetModel:ModelItem * 
        coordinateReference:Visual * 
        startPosition:Point * 
        currentPosition:Point * 
        allowedEffects:DragDropEffects * 
        data:IDataObject -> DragGestureData
public function DragGestureData(
    context : EditingContext, 
    sourceModel : ModelItem, 
    targetModel : ModelItem, 
    coordinateReference : Visual, 
    startPosition : Point, 
    currentPosition : Point, 
    allowedEffects : DragDropEffects, 
    data : IDataObject
)

参数

  • startPosition
    类型:System.Windows.Point
    第一次对画笔进行初始化时鼠标的位置。

异常

异常 条件
ArgumentNullException

context、sourceModel、targetModel 或 data 为 nulla null reference (Nothing in Visual Basic)。

.NET Framework 安全性

请参见

参考

DragGestureData 类

DragGestureData 重载

Microsoft.Windows.Design.Interaction 命名空间

其他资源

了解 WPF 设计器扩展性