共用方式為


GestureData 建構函式 (EditingContext, ModelItem, ModelItem, DependencyObject, DependencyObject)

初始化 GestureData 類別的新執行個體。

命名空間:  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, _
    sourceAdorner As DependencyObject, _
    targetAdorner As DependencyObject _
)
public GestureData(
    EditingContext context,
    ModelItem sourceModel,
    ModelItem targetModel,
    DependencyObject sourceAdorner,
    DependencyObject targetAdorner
)
public:
GestureData(
    EditingContext^ context, 
    ModelItem^ sourceModel, 
    ModelItem^ targetModel, 
    DependencyObject^ sourceAdorner, 
    DependencyObject^ targetAdorner
)
new : 
        context:EditingContext * 
        sourceModel:ModelItem * 
        targetModel:ModelItem * 
        sourceAdorner:DependencyObject * 
        targetAdorner:DependencyObject -> GestureData
public function GestureData(
    context : EditingContext, 
    sourceModel : ModelItem, 
    targetModel : ModelItem, 
    sourceAdorner : DependencyObject, 
    targetAdorner : DependencyObject
)

參數

  • sourceAdorner
    型別:System.Windows.DependencyObject
    與筆勢相關聯的原始裝飾項 (如果存在的話)。這個參數可以是 nullNull 參照 (即 Visual Basic 中的 Nothing)。
  • targetAdorner
    型別:System.Windows.DependencyObject
    與筆勢相關聯的目標裝飾項 (如果存在的話)。這個參數可以是 nullNull 參照 (即 Visual Basic 中的 Nothing)。

例外狀況

例外狀況 條件
ArgumentNullException

context、sourceModel 或 targetModel 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

GestureData 類別

GestureData 多載

Microsoft.Windows.Design.Interaction 命名空間

其他資源

了解 WPF 設計工具擴充性