Redigera

Dela via


KeySpline.ControlPoint2 Property

Definition

The second control point used to define a Bezier curve that describes a KeySpline.

public:
 property System::Windows::Point ControlPoint2 { System::Windows::Point get(); void set(System::Windows::Point value); };
public System.Windows.Point ControlPoint2 { get; set; }
member this.ControlPoint2 : System.Windows.Point with get, set
Public Property ControlPoint2 As Point

Property Value

The Bezier curve's second control point. The point's X and Y values must each be between 0 and 1, inclusive. The default value is (1,1).

Remarks

To understand how a KeySpline works, it is helpful to understand cubic Bezier curves. A cubic Bezier curve is defined by a start point, an end point, and two control points. The two coordinates in the KeySpline defines those two control points. When describing key splines, the start point of the Bezier curve is always 0, and the end point is always 1, which is why you define only the two control points. The resulting curve specifies how an animation is interpolated during a time segment; that is, the curve represents the rate of change in the animation's target attribute over the time segment. To better see the relationship between animation progress and a Bezier curve, see Key Spline Animation Sample.

Applies to