Ellipse

The Ellipse element is not properly a user control because it is actually a geometric shape. It is useful to understand how the element works because you can use it when creating your custom control templates. The following XAML code declares an Ellipse:

image

The most important properties are Width and Height that define dimensions. Stroke defines the color that surrounds the ellipse, and StrokeThickness is a value indicating the stroke depth. As with other geometric shapes, Ellipse background can be assigned via the Fill property. Figure 32.6 shows the drawn ellipse.

Figure 32.6 Drawing and filling an ellipse.

image

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.109.21