Graphics

Consider that you are developing an application that depicts various element of physics or biology. You need to be able to display graphical objects and manipulate them—perhaps showing them in animated form. Obviously, the standard XAML UIElements, such as TextBlock and Button, fall short for such an application. This is where XAML’s graphical capabilities come into focus. XAML lets you draw and paint various forms of graphics, including shapes and geometries.

You use Shape and Geometry to render two-dimensional (2-D) objects. Although the two have much in common, there are important differences between the two sets of drawing objects. The chapter covers these differences in a later section.

Shapes are UI elements, so you can place them ...

Get XAML Developer Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.