Draws a series of connected straight lines.
| XAML | <Polyline .../> |
| Scripting | To create an object using scripting, see CreateFromXAML. |
Properties
Canvas.Left,
Canvas.Top,
Canvas.ZIndex,
Clip,
Cursor,
Fill,
FillRule,
Height,
Name,
Opacity,
OpacityMask,
Points,
RenderTransform,
RenderTransformOrigin,
Resources,
Stretch,
Stroke,
StrokeDashArray,
StrokeDashCap,
StrokeDashOffset,
StrokeEndLineCap,
StrokeLineJoin,
StrokeMiterLimit,
StrokeStartLineCap,
StrokeThickness,
Tag,
Triggers,
Width
Methods
AddEventListener,
CaptureMouse,
Equals,
FindName,
GetHost,
GetParent,
GetValue,
ReleaseMouseCapture,
RemoveEventListener,
SetValue
Events
Loaded,
MouseEnter,
MouseLeave,
MouseLeftButtonDown,
MouseLeftButtonUp,
MouseMove
Examples
The following example shows how to use a PolyLine to create a
closed triangle.
| XAML |
<Canvas
xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Polyline Points="50,25 0,100 100,100 50,25"
Stroke="Blue" StrokeThickness="10"
Canvas.Left="75" Canvas.Top="50" />
</Canvas>
|
See Also
Shapes Overview
Shape