O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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), ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required