Class
ChartPanAndZoomBehavior

Represents a chart behavior that handles Pinch and Drag gestures and manipulates the Zoom and ScrollOffset properties of the associated RadChartBase instance.

Definition

Namespace:Telerik.UI.Xaml.Controls.Chart

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class ChartPanAndZoomBehavior : ChartBehavior

Inheritance: objectChartBehaviorChartPanAndZoomBehavior

Inherited Members ChartBehavior.OnPointerEntered(PointerRoutedEventArgs)ChartBehavior.OnPointerMoved(PointerRoutedEventArgs)ChartBehavior.OnPointerExited(PointerRoutedEventArgs)ChartBehavior.OnPointerPressed(PointerRoutedEventArgs)ChartBehavior.OnHoldCompleted(HoldingRoutedEventArgs)ChartBehavior.OnHoldStarted(HoldingRoutedEventArgs)ChartBehavior.OnTapped(TappedRoutedEventArgs)ChartBehavior.OnManipulationStarted(ManipulationStartedRoutedEventArgs)ChartBehavior.OnManipulationCompleted(ManipulationCompletedRoutedEventArgs)ChartBehavior.OnPointerReleased(PointerRoutedEventArgs)ChartBehavior.OnChartUIUpdated()ChartBehavior.GetDataContext(Point, bool)ChartBehavior.OnLoaded()ChartBehavior.OnUnloaded()ChartBehavior.OnAttached()ChartBehavior.OnDetached()ChartBehavior.ChartChartBehavior.AdornerLayer

Constructors

ChartPanAndZoomBehavior()

Declaration

cs-api-definition
public ChartPanAndZoomBehavior()

Properties

HandleDoubleTap

Gets or sets a value indicating whether a Double-tap gesture will be handled by the behavior to reset the current Zoom and ScrollOffset values.

Declaration

cs-api-definition
public bool HandleDoubleTap { get; set; }

Property Value

bool

PanMode

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

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 gesture.

Declaration

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

Property Value

ChartPanZoomMode

Methods

OnDoubleTapped(DoubleTappedRoutedEventArgs)

If HandleDoubleTap is true, resets the current ScrollOffset and Zoom properties of the owning chart to their default values.

Declaration

cs-api-definition
protected override void OnDoubleTapped(DoubleTappedRoutedEventArgs args)

Parameters

args

DoubleTappedRoutedEventArgs

Overrides ChartBehavior.OnDoubleTapped(DoubleTappedRoutedEventArgs)

OnManipulationDelta(ManipulationDeltaRoutedEventArgs)

Processes the Scale and Translation properties of the Delta manipulation. The event is handled if the owning chart is not in "Hold" state.

Declaration

cs-api-definition
protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs args)

Parameters

args

ManipulationDeltaRoutedEventArgs

Overrides ChartBehavior.OnManipulationDelta(ManipulationDeltaRoutedEventArgs)

OnPointerWheelChanged(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnPointerWheelChanged(PointerRoutedEventArgs args)

Parameters

args

PointerRoutedEventArgs

Overrides ChartBehavior.OnPointerWheelChanged(PointerRoutedEventArgs)