ComponentOne FinancialChart for WPF
C1ZoomHelper Constructor



C1.WPF Namespace > C1ZoomHelper Class : C1ZoomHelper Constructor
An System.Windows.UIElement on which the zoom gesture will be listened.
Sets whether is required to press Ctrl key in order to start the gesture.
If set to true it will raise intermediate events to perform a continuous zoom, otherwise the events will be raised from native mouse wheel events.
Sets whether Handled property of mouse wheel events will be set to true.
Initializes a new C1ZoomHelper.
Syntax
'Declaration
 
Public Function New( _
   ByVal element As UIElement, _
   Optional ByVal ctrlRequired As Boolean, _
   Optional ByVal continuousZoom As Boolean, _
   Optional ByVal handleMouseWheel As Boolean _
)
'Usage
 
Dim element As UIElement
Dim ctrlRequired As Boolean
Dim continuousZoom As Boolean
Dim handleMouseWheel As Boolean
 
Dim instance As New C1ZoomHelper(element, ctrlRequired, continuousZoom, handleMouseWheel)

Parameters

element
An System.Windows.UIElement on which the zoom gesture will be listened.
ctrlRequired
Sets whether is required to press Ctrl key in order to start the gesture.
continuousZoom
If set to true it will raise intermediate events to perform a continuous zoom, otherwise the events will be raised from native mouse wheel events.
handleMouseWheel
Sets whether Handled property of mouse wheel events will be set to true.
See Also

Reference

C1ZoomHelper Class
C1ZoomHelper Members