KeySpline.ControlPoint2 Property

July 28, 2014

Gets or sets the second control point used to define a Bezier curve that describes a KeySpline.

Namespace:  System.Windows.Media.Animation
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public Point ControlPoint2 { get; set; }
<KeySpline ControlPoint2="x,y"/>

XAML Values

x

The X value of the Point that specifies the end point.

y

The Y value of a Point that specifies the end point.

Property Value

Type: System.Windows.Point
The second control point used to define a Bezier curve that describes a KeySpline.

XAML object element syntax for KeySpline (to fill a KeySpline property in property element syntax) is possible but not common. It is more common to use attribute syntax on a KeySpline property and use the type conversion behavior to specify both ControlPoint1 and ControlPoint2 in a single string.

ControlPoint1 and ControlPoint2 are "logical points", not points in an actual onscreen coordinate system. See "Logical Points" section in Point.

The XAML syntax for this property specifies a new Point as a string. The delimiter between the x and y values of the point can be either a comma or a space. Note that the comma usage has potential to clash with the usage of comma as the decimal point in some UI cultures. For more information, see the "XAML Attribute Syntax" section of Point.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft