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

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

初始化 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, _
    sourceAdorner As DependencyObject, _
    targetAdorner As DependencyObject _
)
public DragGestureData(
    EditingContext context,
    ModelItem sourceModel,
    ModelItem targetModel,
    Visual coordinateReference,
    Point startPosition,
    Point currentPosition,
    DragDropEffects allowedEffects,
    IDataObject data,
    DependencyObject sourceAdorner,
    DependencyObject targetAdorner
)
public:
DragGestureData(
    EditingContext^ context, 
    ModelItem^ sourceModel, 
    ModelItem^ targetModel, 
    Visual^ coordinateReference, 
    Point startPosition, 
    Point currentPosition, 
    DragDropEffects allowedEffects, 
    IDataObject^ data, 
    DependencyObject^ sourceAdorner, 
    DependencyObject^ targetAdorner
)
new : 
        context:EditingContext * 
        sourceModel:ModelItem * 
        targetModel:ModelItem * 
        coordinateReference:Visual * 
        startPosition:Point * 
        currentPosition:Point * 
        allowedEffects:DragDropEffects * 
        data:IDataObject * 
        sourceAdorner:DependencyObject * 
        targetAdorner:DependencyObject -> DragGestureData
public function DragGestureData(
    context : EditingContext, 
    sourceModel : ModelItem, 
    targetModel : ModelItem, 
    coordinateReference : Visual, 
    startPosition : Point, 
    currentPosition : Point, 
    allowedEffects : DragDropEffects, 
    data : IDataObject, 
    sourceAdorner : DependencyObject, 
    targetAdorner : DependencyObject
)

参数

  • startPosition
    类型:System.Windows.Point
    第一次对画笔进行初始化时鼠标的位置。
  • sourceAdorner
    类型:System.Windows.DependencyObject
    要与笔势关联的源装饰器(如果存在)。此参数可以为 nulla null reference (Nothing in Visual Basic)。
  • targetAdorner
    类型:System.Windows.DependencyObject
    要与笔势关联的目标装饰器(如果存在)。此参数可以为 nulla null reference (Nothing in Visual Basic)。

.NET Framework 安全性

请参见

参考

DragGestureData 类

DragGestureData 重载

Microsoft.Windows.Design.Interaction 命名空间

其他资源

了解 WPF 设计器扩展性