Initializes a new C1ScrollHelper.
Namespace:
C1.SilverlightAssembly: C1.Silverlight (in C1.Silverlight.dll)
Syntax
| C# |
|---|
public C1ScrollHelper( UIElement element, bool avoidIfCtrlPressed = true, bool continuousScroll = true, bool handleMouseWheel = true ) |
| Visual Basic |
|---|
Public Sub New ( _ element As UIElement, _ Optional avoidIfCtrlPressed As Boolean = True, _ Optional continuousScroll As Boolean = True, _ Optional handleMouseWheel As Boolean = True _ ) |
Parameters
- element
- Type: System.Windows..::..UIElement
An UIElement on which the zoom gesture will be listened.
- avoidIfCtrlPressed (Optional)
- Type: System..::..Boolean
Sets whether is required to press Ctrl key in order to start the gesture.
- continuousScroll (Optional)
- Type: System..::..Boolean
If set to true it will raise intermediate events to perform a continuous scroll, otherwise the events will be raised from native mouse wheel events.
- handleMouseWheel (Optional)
- Type: System..::..Boolean
Sets whether Handled property of mouse wheel events will be set to true.