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

Path

All the preceding shapes are just special cases of a powerful shape called Path. Path adds only a single Data property to Shape, which can be set to an instance of any geometry, for example:

<Path StrokeThickness="10" Fill="Red">  <Path.Data>    <RectangleGeometry Rect="0,0,100,100"/>  </Path.Data></Path>

Geometries are covered in the next section. First, let’s look at a number of ways to alter the appearance of any shape’s strokes.

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