Class ChartPanAndZoomBehavior
Represents a chart behavior that manipulates the Zoom and PanOffset properties of the associated RadChartBase instance.
Inherited Members
Namespace: Telerik.Windows.Controls.ChartView
Assembly: Telerik.Windows.Controls.Chart.dll
Syntax
public class ChartPanAndZoomBehavior : ChartBehavior
Constructors
ChartPanAndZoomBehavior()
Declaration
public ChartPanAndZoomBehavior()
Fields
DragModeProperty
Identifies the DragMode dependency property.
Declaration
public static readonly DependencyProperty DragModeProperty
Field Value
System.Windows.DependencyProperty
|
MouseWheelModeProperty
Identifies the MouseWheelMode dependency property.
Declaration
public static readonly DependencyProperty MouseWheelModeProperty
Field Value
System.Windows.DependencyProperty
|
PanModeProperty
Identifies the PanMode dependency property.
Declaration
public static readonly DependencyProperty PanModeProperty
Field Value
System.Windows.DependencyProperty
|
ZoomModeProperty
Identifies the ZoomMode dependency property.
Declaration
public static readonly DependencyProperty ZoomModeProperty
Field Value
System.Windows.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
ChartDragMode
|
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
System.Collections.Generic.List<ChartKeyCombination>
|
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
System.Collections.Generic.List<ChartKeyCombination>
|
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.
Declaration
public double DragToZoomThreshold { get; set; }
Property Value
System.Double
|
MouseWheelMode
Gets or sets a value that specifies how the chart will respond to mouse wheel.
Declaration
public ChartMouseWheelMode MouseWheelMode { get; set; }
Property Value
ChartMouseWheelMode
|
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
ChartPanZoomMode
|
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
ChartPanZoomMode
|
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 System.Windows.Freezable derived class.
Declaration
protected override Freezable CreateInstanceCore()
Returns
System.Windows.Freezable
The new instance. |
Overrides
OnChartTemplateChanged(Canvas, Canvas)
Called when chart template is changed.
Declaration
protected override void OnChartTemplateChanged(Canvas oldAdornerContainer, Canvas adornerContainer)
Parameters
System.Windows.Controls.Canvas
oldAdornerContainer
The old adorner layer. |
System.Windows.Controls.Canvas
adornerContainer
The adorner layer. |
Overrides
OnDetached()
This method is called when this behavior is removed from the chart.
Declaration
protected override void OnDetached()