Getting Fancy with Strokes

We’ve already seen examples of setting the Stroke property on shapes, but the Shape class defines a number of other stroke-related properties. One simple property is StrokeThickness of type double (with a default value of 1). But that’s not all:

Image StrokeStartLineCap and StrokeEndLineCap—Customize any open segment endpoints with a value from the PenLineCap enumeration: Flat (the default), Square, Round, or Triangle. For any endpoints that join two segments, you can customize their appearance with StrokeLineJoin instead.

StrokeLineJoin—Affects corners with a value from the PenLineJoin enumeration: Miter (the default), ...

Get XAML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.