Represents one or more cubic Bezier curves.
Assembly: PresentationCore (in PresentationCore.dll)
Gets a value that indicates whether the object can be made unmodifiable. (Inherited from Freezable.)
Gets a value that indicates whether the object is currently modifiable. (Inherited from Freezable.)
Gets a value that indicates whether this instance is currently sealed (read-only).(Inherited from DependencyObject.)
Gets or sets a value that indicates whether the segment is stroked. (Inherited from PathSegment.)
Gets or sets the PointCollection that define this object.
|ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)|
|BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)|
Creates a modifiable clone of this, making deep copies of this object's values. When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.
Creates a modifiable clone of thisobject, making deep copies of this object's current values. Resource references, data bindings, and animations are not copied, but their current values are.
Re-evaluates the effective value for the specified dependency property(Inherited from DependencyObject.)
Returns the local value of a dependency property, if it exists. (Inherited from DependencyObject.)
Sets the value of a dependency property without changing its value source. (Inherited from DependencyObject.)
Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from DependencyObject.)
Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.(Inherited from DependencyObject.)
Returns a string that represents the current object.(Inherited from Object.)
Use a PathFigure object to store objects and other segments.
A cubic Bezier curve is defined by four points: a start point, an end point and two control points. A Points property to a collection of points. For every three points in the collection, the first and second points specify the two control points of the curve and the third point specifies the end point. Note that no start point for the curve is specified because start point is the same as the end point of the last segment.specifies one or more cubic Bezier curves by setting the
The two control points of a cubic Bezier curve behave like magnets, attracting portions of what would otherwise be a straight line toward themselves and producing a curve. The first control point affects the beginning portion of the curve; the second control point affects the ending portion of the curve. Note that the curve doesn't necessarily pass through either of the control points; each control point moves its portion of the line toward itself, but not through itself.
The following example shows how to use ato draw two cubic Bezier curves.
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <StackPanel> <Canvas> <Path Stroke="Black" StrokeThickness="1"> <Path.Data> <PathGeometry> <PathGeometry.Figures> <PathFigureCollection> <!-- The StartPoint specifies the starting point of the first curve. --> <PathFigure StartPoint="10,100"> <PathFigure.Segments> <PathSegmentCollection> <!-- The PolyBezierSegment specifies two cubic Bezier curves. The first curve is from 10,100 (start point specified above) to 300,100 with a control point of 0,0 and another control point of 200,0. The second curve is from 300,100 (end of the last curve) to 600,100 with a control point of 300,0 and another control point of 400,0. --> <PolyBezierSegment Points="0,0 200,0 300,100 300,0 400,0 600,100" /> </PathSegmentCollection> </PathFigure.Segments> </PathFigure> </PathFigureCollection> </PathGeometry.Figures> </PathGeometry> </Path.Data> </Path> </Canvas> </StackPanel> </Page>
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.