New to Telerik UI for WinForms? Start a free 30-day trial

Defines a cubic Bezier path for carousel items using a start point, two control points, and an end point.

Definition

Constructors

Initializes the four control points to Empty.

C#
public CarouselBezierPath()

Properties

Gets the backing array of control points in start, first-control, second-control, and end order. Direct edits to the array do not trigger the recalculation and property-change logic used by the named properties.

C#
[Browsable(false)]
public Point3D[] ControlPoints { get; }

Gets or sets the first control point, which influences the curve leaving FirstPoint.

C#
public Point3D CtrlPoint1 { get; set; }

Gets or sets the second control point, which influences the curve approaching LastPoint.

C#
public Point3D CtrlPoint2 { get; set; }

Gets the last control point as the path's exit point.

C#
[Browsable(false)]
public override object FinalPathPoint { get; }

Overrides: CarouselParameterPath.FinalPathPoint

Gets or sets the point where the Bezier curve begins.

C#
public Point3D FirstPoint { get; set; }

Gets the first control point as the path's entry point.

C#
[Browsable(false)]
public override object InitialPathPoint { get; }

Overrides: CarouselParameterPath.InitialPathPoint

Gets whether the start and end points are equal.

C#
protected override bool IsClosedPath { get; }

Overrides: CarouselParameterPath.IsClosedPath

Gets or sets the point where the Bezier curve ends.

C#
public Point3D LastPoint { get; set; }

Methods

Evaluates the cubic Bezier curve at the supplied parameter without clamping the parameter to the usual 0-to-1 interval.

C#
public override object EvaluateByParameter(VisualElement element, CarouselPathAnimationData data, double value)
Parameters:elementVisualElement

The carousel element associated with the evaluation; it is not used by this curve calculation.

dataCarouselPathAnimationData

The animation data associated with the evaluation; it is not used by this curve calculation.

valuedouble

The curve parameter used to calculate the point.

Returns:

object

A new point on the cubic curve, or an extrapolated point when the parameter is outside 0 to 1.

Overrides: CarouselParameterPath.EvaluateByParameter(VisualElement, CarouselPathAnimationData, double)

Updates the curve's Z-index mapping when a control point or related path setting changes, then raises the property-change event.

C#
protected override void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters:ePropertyChangedEventArgs

The changed-property details.

Overrides: CarouselParameterPath.OnPropertyChanged(PropertyChangedEventArgs)