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

GeometryGroup

GeometryGroup composes one or more Geometry instances together. Like TransformGroup’s relationship to Transform, GeometryGroup derives from Geometry, so it can be used anywhere that a simpler Geometry can be used. For example, the previously shown XAML for the overlapping triangles in Figure 7.12 could be rewritten to use two geometries (each with a single PathFigure) rather than one:

<Path Fill="Orange" Stroke="Black" StrokeThickness="10">  <Path.Data>    <GeometryGroup>       <!-- Triangle #1 -->      <PathGeometry>        <PathFigure IsClosed="True">          <LineSegment Point="0,100"/>          <LineSegment Point="100,100"/>        </PathFigure>      </PathGeometry>      <!-- Triangle #2 -->       ...

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