Cleaned up how-to-create-a-cubic-bezier-curve.md (#220)

* Cleaned up how-to-create-a-cubic-bezier-curve.md

Removed unnecessary [xml] tags

* Update how-to-create-a-cubic-bezier-curve.md

Co-authored-by: Andy De George <[email protected]>
This commit is contained in:
Christy
2021-03-08 17:19:37 -08:00
committed by GitHub
co-authored by Andy De George
parent 911443635a
commit 1548a17118
@@ -12,14 +12,11 @@ ms.assetid: 450a3a77-7c57-48b0-a008-0f6051add980
This example shows how to create a cubic Bezier curve. To create a cubic Bezier curve, use the <xref:System.Windows.Media.PathGeometry>, <xref:System.Windows.Media.PathFigure>, and <xref:System.Windows.Media.BezierSegment> classes. To display the resulting geometry, use a <xref:System.Windows.Shapes.Path> element, or use it with a <xref:System.Windows.Media.GeometryDrawing> or a <xref:System.Windows.Media.DrawingContext>. In the following examples, a cubic Bezier curve is drawn from (10, 100) to (300, 100). The curve has control points of (100, 0) and (200, 200).
## Example
[xaml]
In [!INCLUDE[TLA#tla_xaml](../../../includes/tlasharptla-xaml-md.md)], you may use abbreviated markup syntax to describe a path.
[!code-xaml[GeometrySample#53](~/samples/snippets/csharp/VS_Snippets_Wpf/GeometrySample/CS/geometryattributesyntaxexample.xaml#53)]
[xaml]
In [!INCLUDE[TLA2#tla_xaml](../../../includes/tla2sharptla-xaml-md.md)], you can also draw a cubic Bezier curve using object tags. The following is equivalent to the previous [!INCLUDE[TLA2#tla_xaml](../../../includes/tla2sharptla-xaml-md.md)] example.
[!code-xaml[GeometrySample#33](~/samples/snippets/csharp/VS_Snippets_Wpf/GeometrySample/CS/pathgeometryexample.xaml#33)]