New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class ChartPanAndZoomBehavior : ChartBehavior

Inheritance: objectInheritanceContextPropagatorChartBehaviorChartPanAndZoomBehavior

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

Constructors

C#
public ChartPanAndZoomBehavior()

Fields

DragModeProperty

DependencyProperty

Identifies the DragMode dependency property.

C#
public static readonly DependencyProperty DragModeProperty

MouseWheelModeProperty

DependencyProperty

Identifies the MouseWheelMode dependency property.

C#
public static readonly DependencyProperty MouseWheelModeProperty

PanModeProperty

DependencyProperty

Identifies the PanMode dependency property.

C#
public static readonly DependencyProperty PanModeProperty

ZoomModeProperty

DependencyProperty

Identifies the ZoomMode dependency property.

C#
public static readonly DependencyProperty ZoomModeProperty

Properties

Gets or sets the ChartDragMode value that specifies how the chart will respond to a drag action.

C#
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.

C#
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.

C#
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.

C#
public double DragToZoomThreshold { get; set; }

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

C#
public ChartMouseWheelMode MouseWheelMode { get; set; }

Gets or sets the ChartPanZoomMode value that specifies how the chart will respond to a pan action.

C#
public ChartPanZoomMode PanMode { get; set; }

Gets or sets the ChartPanZoomMode value that specifies how the chart will respond to a zoom action.

C#
public ChartPanZoomMode ZoomMode { get; set; }

Methods

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

C#
public void CancelDragToZoom()

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

C#
protected override Freezable CreateInstanceCore()
Returns:

Freezable

The new instance.

Overrides: InheritanceContextPropagator.CreateInstanceCore()

Called when chart template is changed.

C#
protected override void OnChartTemplateChanged(Canvas oldAdornerContainer, Canvas adornerContainer)
Parameters:oldAdornerContainerCanvas

The old adorner layer.

adornerContainerCanvas

The adorner layer.

Overrides: ChartBehavior.OnChartTemplateChanged(Canvas, Canvas)

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

C#
protected override void OnDetached()

Overrides: ChartBehavior.OnDetached()