CarouselBezierPath
Defines a cubic Bezier path for carousel items using a start point, two control points, and an end point.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CarouselBezierPath : CarouselParameterPath, ICarouselPath, INotifyPropertyChanged
Inheritance: objectCarouselParameterPathCarouselBezierPath
Implements:
Inherited Members
Constructors
Initializes the four control points to Empty.
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.
[Browsable(false)]
public Point3D[] ControlPoints { get; }
Gets or sets the first control point, which influences the curve leaving FirstPoint.
public Point3D CtrlPoint1 { get; set; }
Gets or sets the second control point, which influences the curve approaching LastPoint.
public Point3D CtrlPoint2 { get; set; }
Gets the last control point as the path's exit point.
[Browsable(false)]
public override object FinalPathPoint { get; }
Overrides:
Gets or sets the point where the Bezier curve begins.
public Point3D FirstPoint { get; set; }
Gets the first control point as the path's entry point.
[Browsable(false)]
public override object InitialPathPoint { get; }
Overrides:
Gets whether the start and end points are equal.
protected override bool IsClosedPath { get; }
Overrides:
Methods
Evaluates the cubic Bezier curve at the supplied parameter without clamping the parameter to the usual 0-to-1 interval.
public override object EvaluateByParameter(VisualElement element, CarouselPathAnimationData data, double value)
The carousel element associated with the evaluation; it is not used by this curve calculation.
dataCarouselPathAnimationDataThe animation data associated with the evaluation; it is not used by this curve calculation.
valuedoubleThe curve parameter used to calculate the point.
Returns:A new point on the cubic curve, or an extrapolated point when the parameter is outside 0 to 1.
Overrides:
Updates the curve's Z-index mapping when a control point or related path setting changes, then raises the property-change event.
protected override void OnPropertyChanged(PropertyChangedEventArgs e)
The changed-property details.
Overrides: