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-linesegment-in-a-pathgeometry.md (#221)
* Update how-to-create-a-linesegment-in-a-pathgeometry.md Removed unnecessary [xaml] tags * Update how-to-create-a-linesegment-in-a-pathgeometry.md Co-authored-by: Andy De George <[email protected]>
This commit is contained in:
co-authored by
Andy De George
parent
1548a17118
commit
ad9b095b5f
-4
@@ -21,8 +21,6 @@ The following examples draw a <xref:System.Windows.Media.LineSegment> from (10,
|
||||

|
||||
A LineSegment drawn from (10,50) to (200,70)
|
||||
|
||||
[xaml]
|
||||
|
||||
In [!INCLUDE[TLA#tla_xaml](../../../includes/tlasharptla-xaml-md.md)], you may use attribute syntax to describe a path.
|
||||
|
||||
```xaml
|
||||
@@ -30,8 +28,6 @@ In [!INCLUDE[TLA#tla_xaml](../../../includes/tlasharptla-xaml-md.md)], you may u
|
||||
Data="M 10,50 L 200,70" />
|
||||
```
|
||||
|
||||
[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 line segment by 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