Export (0) Print
Expand All

KeySpline.ControlPoint1 Property

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

Namespace:  System.Windows.Media.Animation
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public Point ControlPoint1 { get; set; }
<object>
  <object.ControlPoint1>
    <Point .../>
  </object.ControlPoint1>
</object>
<object ControlPoint1="Point" .../>

Property Value

Type: System.Windows.Point
The Bezier curve's first control point. The point's X and Y values must each be between 0 and 1, inclusive. The default value is (0,0).

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft