Class
ChartPanAndZoomBehavior

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:

cs-api-definition
public class ChartPanAndZoomBehavior : ChartBehavior

Inheritance: objectInheritanceContextPropagatorChartBehaviorChartPanAndZoomBehavior

Inherited Members ChartBehavior.OnUnloaded()ChartBehavior.OnAttached()ChartBehavior.ChartChartBehavior.AdornerContainerInheritanceContextPropagator.FreezeCore(bool)

Constructors

ChartPanAndZoomBehavior()

Declaration

cs-api-definition
public ChartPanAndZoomBehavior()

Fields

DragModeProperty

Identifies the DragMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DragModeProperty

Field Value

DependencyProperty

MouseWheelModeProperty

Identifies the MouseWheelMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MouseWheelModeProperty

Field Value

DependencyProperty

PanModeProperty

Identifies the PanMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PanModeProperty

Field Value

DependencyProperty

ZoomModeProperty

Identifies the ZoomMode dependency property.

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public List<ChartKeyCombination> DragToPanKeyCombinations { get; }

Property Value

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

cs-api-definition
public List<ChartKeyCombination> DragToZoomKeyCombinations { get; }

Property Value

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

cs-api-definition
public double DragToZoomThreshold { get; set; }

Property Value

double

MouseWheelMode

Gets or sets a value that specifies how the chart will respond to mouse wheel.

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public ChartPanZoomMode ZoomMode { get; set; }

Property Value

ChartPanZoomMode

Methods

CancelDragToZoom()

Cancels the current drag-to-zoom operation if it is in progress.

Declaration

cs-api-definition
public void CancelDragToZoom()

CreateInstanceCore()

When implemented in a derived class, creates a new instance of the Freezable derived class.

Declaration

cs-api-definition
protected override Freezable CreateInstanceCore()

Returns

Freezable

The new instance.

Overrides InheritanceContextPropagator.CreateInstanceCore()

OnChartTemplateChanged(Canvas, Canvas)

Called when chart template is changed.

Declaration

cs-api-definition
protected override void OnChartTemplateChanged(Canvas oldAdornerContainer, Canvas adornerContainer)

Parameters

oldAdornerContainer

Canvas

The old adorner layer.

adornerContainer

Canvas

The adorner layer.

Overrides ChartBehavior.OnChartTemplateChanged(Canvas, Canvas)

OnDetached()

This method is called when this behavior is removed from the chart.

Declaration

cs-api-definition
protected override void OnDetached()

Overrides ChartBehavior.OnDetached()