mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 00:56:03 +02:00
Update how-to-create-a-quadratic-bezier-curve.md (#223)
* Update how-to-create-a-quadratic-bezier-curve.md Removed unnecessary [xaml] tags * Update how-to-create-a-quadratic-bezier-curve.md * Update how-to-create-a-quadratic-bezier-curve.md Co-authored-by: Andy De George <[email protected]>
This commit is contained in:
co-authored by
Andy De George
parent
f646753cfd
commit
911443635a
+2
-6
@@ -12,15 +12,11 @@ This example shows how to create a quadratic Bezier curve. To create a quadrati
|
||||
|
||||
## Example
|
||||
In the following examples, a quadratic Bezier curve is drawn from (10,100) to (300,100). The curve has a control point of (200,200).
|
||||
|
||||
[xaml]
|
||||
|
||||
|
||||
In [!INCLUDE[TLA#tla_xaml](../../../includes/tlasharptla-xaml-md.md)], you can use attribute syntax to describe a path.
|
||||
|
||||
[!code-xaml[GeometrySample#54](~/samples/snippets/csharp/VS_Snippets_Wpf/GeometrySample/CS/geometryattributesyntaxexample.xaml#54)]
|
||||
|
||||
[xaml]
|
||||
|
||||
|
||||
(Note that this attribute syntax actually creates a <xref:System.Windows.Media.StreamGeometry>, a lighter-weight version of a <xref:System.Windows.Media.PathGeometry>. For more information, see the [Path Markup Syntax](path-markup-syntax.md) page.)
|
||||
|
||||
In [!INCLUDE[TLA2#tla_xaml](../../../includes/tla2sharptla-xaml-md.md)], you may also draw a quadratic Bezier curve using object element syntax. The following is equivalent to the previous [!INCLUDE[TLA2#tla_xaml](../../../includes/tla2sharptla-xaml-md.md)] example.
|
||||
|
||||
Reference in New Issue
Block a user