Udostępnij za pośrednictwem


GestureData Constructor (EditingContext, ModelItem, ModelItem, DependencyObject, DependencyObject)

Initializes a new instance of the GestureData class.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
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
)

Parameters

  • sourceAdorner
    Type: System.Windows.DependencyObject
    The source adorner to associate with the gesture, if it exists. This parameter can be nulla null reference (Nothing in Visual Basic).
  • targetAdorner
    Type: System.Windows.DependencyObject
    The target adorner to associate with the gesture, if it exists. This parameter can be nulla null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
ArgumentNullException

context, sourceModel, or targetModel is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

GestureData Class

GestureData Overload

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Understanding WPF Designer Extensibility