The Path object is extremely powerful and flexible; not only can you generate polygons, you can also specify elliptic arcs, quadratic Be´zier curves, and cubic 13 14 Chapter 1 n Introduction to Silverlight Be´zier curves (as you will learn in Chapter 4, ‘‘Be´zier Curves and Color Gradients’’).

2 in the manner described here: n Point (50, 50) is 50 pixels to the right and 50 pixels downward. n Point (200, 50) is 200 pixels to the right and 50 pixels downward. n Point (50, 100) is 50 pixels to the right and 100 pixels downward. n Point (200, 100) is 200 pixels to the right and 100 pixels downward. Rendering Polygons with Polygon Objects You already know that the Silverlight/XAML Rectangle object defines a rectangle. The Polygon object can render arbitrary quadrilaterals, which include rectangles as a special case.

Download PDF sample

Rated 4.21 of 5 – based on 5 votes