■ GeometryGroup 엘리먼트를 사용하는 방법을 보여준다.
▶ 예제 코드 (XAML)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<Path StrokeThickness="5" Stroke="Black" Fill="Gold"> <Path.Data> <GeometryGroup FillRule="EvenOdd"> <LineGeometry StartPoint="10 10" EndPoint="50 50" /> <EllipseGeometry Center="75 50" RadiusX="50" RadiusY="30" /> <RectangleGeometry Rect="50 60, 100 50" /> <EllipseGeometry Center="130 140" RadiusX="30" RadiusY="55" /> </GeometryGroup> </Path.Data> </Path> |