ClassChartPanAndZoomBehavior
Represents a chart behavior that manipulates the Zoom and PanOffset properties of the associated RadChartBase instance.
Definition
Namespace:Telerik.Windows.Controls.ChartView
Assembly:Telerik.Windows.Controls.Chart.dll
Syntax:
public class ChartPanAndZoomBehavior : ChartBehavior
Inheritance: objectInheritanceContextPropagatorChartBehaviorChartPanAndZoomBehavior
Inherited Members
Constructors
ChartPanAndZoomBehavior()
Declaration
public ChartPanAndZoomBehavior()
Fields
DragModeProperty
Identifies the DragMode dependency property.
Declaration
public static readonly DependencyProperty DragModeProperty
Field Value
DependencyProperty
MouseWheelModeProperty
Identifies the MouseWheelMode dependency property.
Declaration
public static readonly DependencyProperty MouseWheelModeProperty
Field Value
DependencyProperty
PanModeProperty
Identifies the PanMode dependency property.
Declaration
public static readonly DependencyProperty PanModeProperty
Field Value
DependencyProperty
ZoomModeProperty
Identifies the ZoomMode dependency property.
Declaration
public static readonly DependencyProperty ZoomModeProperty
Field Value
DependencyProperty
Properties
DragMode
Gets or sets the ChartDragMode value that specifies how the chart will respond to a drag action.
Declaration
public ChartDragMode DragMode { get; set; }
Property Value
DragToPanKeyCombinations
Gets the drag-to-pan key combinations. This property has a higher priority than the DragMode property and if any combination is satisfied, a drag-to-pan operation is started.
Declaration
public List<ChartKeyCombination> DragToPanKeyCombinations { get; }
Property Value
DragToZoomKeyCombinations
Gets the drag-to-zoom key combinations. This property has a higher priority than the DragMode property and if any combination is satisfied, a drag-to-zoom operation is started.
Declaration
public List<ChartKeyCombination> DragToZoomKeyCombinations { get; }
Property Value
DragToZoomThreshold
Gets or sets a value that specifies the minimum distance between the start and end points of the drag operation that will allow the drag-to-zoom to be performed.
MouseWheelMode
Gets or sets a value that specifies how the chart will respond to mouse wheel.
Declaration
public ChartMouseWheelMode MouseWheelMode { get; set; }
Property Value
PanMode
Gets or sets the ChartPanZoomMode value that specifies how the chart will respond to a pan action.
Declaration
public ChartPanZoomMode PanMode { get; set; }
Property Value
ZoomMode
Gets or sets the ChartPanZoomMode value that specifies how the chart will respond to a zoom action.
Declaration
public ChartPanZoomMode ZoomMode { get; set; }
Property Value
Methods
CancelDragToZoom()
Cancels the current drag-to-zoom operation if it is in progress.
Declaration
public void CancelDragToZoom()
CreateInstanceCore()
When implemented in a derived class, creates a new instance of the Freezable derived class.
Declaration
protected override Freezable CreateInstanceCore()
Returns
Freezable
The new instance.
Overrides
OnChartTemplateChanged(Canvas, Canvas)
Called when chart template is changed.
Declaration
protected override void OnChartTemplateChanged(Canvas oldAdornerContainer, Canvas adornerContainer)
Parameters
oldAdornerContainer
Canvas
The old adorner layer.
adornerContainer
Canvas
The adorner layer.
Overrides
OnDetached()
This method is called when this behavior is removed from the chart.
Declaration
protected override void OnDetached()
Overrides