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
public ChartPanAndZoomBehavior()
Fields
DragModeProperty
DependencyProperty
Identifies the DragMode dependency property.
public static readonly DependencyProperty DragModeProperty
MouseWheelModeProperty
DependencyProperty
Identifies the MouseWheelMode dependency property.
public static readonly DependencyProperty MouseWheelModeProperty
PanModeProperty
DependencyProperty
Identifies the PanMode dependency property.
public static readonly DependencyProperty PanModeProperty
ZoomModeProperty
DependencyProperty
Identifies the ZoomMode dependency property.
public static readonly DependencyProperty ZoomModeProperty
Properties
Gets or sets the ChartDragMode value that specifies how the chart will respond to a drag action.
public ChartDragMode DragMode { get; set; }
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.
public List<ChartKeyCombination> DragToPanKeyCombinations { get; }
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.
public List<ChartKeyCombination> DragToZoomKeyCombinations { get; }
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.
public double DragToZoomThreshold { get; set; }
Gets or sets a value that specifies how the chart will respond to mouse wheel.
public ChartMouseWheelMode MouseWheelMode { get; set; }
Gets or sets the ChartPanZoomMode value that specifies how the chart will respond to a pan action.
public ChartPanZoomMode PanMode { get; set; }
Gets or sets the ChartPanZoomMode value that specifies how the chart will respond to a zoom action.
public ChartPanZoomMode ZoomMode { get; set; }
Methods
Cancels the current drag-to-zoom operation if it is in progress.
public void CancelDragToZoom()
CreateInstanceCore()
Freezable
When implemented in a derived class, creates a new instance of the Freezable derived class.
protected override Freezable CreateInstanceCore()
Freezable
The new instance.
Overrides:
Called when chart template is changed.
protected override void OnChartTemplateChanged(Canvas oldAdornerContainer, Canvas adornerContainer)
The old adorner layer.
adornerContainerCanvasThe adorner layer.
Overrides:
This method is called when this behavior is removed from the chart.
protected override void OnDetached()
Overrides: