Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Initializes a new instance of the WheelGestureData 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, _
delta As Integer, _
sourceAdorner As DependencyObject, _
targetAdorner As DependencyObject _
)
public WheelGestureData(
EditingContext context,
ModelItem sourceModel,
ModelItem targetModel,
int delta,
DependencyObject sourceAdorner,
DependencyObject targetAdorner
)
public:
WheelGestureData(
EditingContext^ context,
ModelItem^ sourceModel,
ModelItem^ targetModel,
int delta,
DependencyObject^ sourceAdorner,
DependencyObject^ targetAdorner
)
new :
context:EditingContext *
sourceModel:ModelItem *
targetModel:ModelItem *
delta:int *
sourceAdorner:DependencyObject *
targetAdorner:DependencyObject -> WheelGestureData
public function WheelGestureData(
context : EditingContext,
sourceModel : ModelItem,
targetModel : ModelItem,
delta : int,
sourceAdorner : DependencyObject,
targetAdorner : DependencyObject
)
Parameters
- context
Type: Microsoft.Windows.Design.EditingContext
The editing context that owns this gesture data.
- sourceModel
Type: Microsoft.Windows.Design.Model.ModelItem
The model where the gesture began.
- targetModel
Type: Microsoft.Windows.Design.Model.ModelItem
The model the gesture is currently over.
- delta
Type: System.Int32
The amount the wheel has moved.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace