The Display Element Hierarchy

We can now create windows and place elements in them. We have noticed that some elements, for example, StackPanel and Canvas, can act as containers for other elements. At this point, we need to consider how the element classes relate to each other. They are structured in the form of a class hierarchy. A child class can extend a parent class, using the abilities and properties of the parent while adding and overriding behavior, as it requires.

Figure 7-16 shows the hierarchy of some of the elements in the Windows Presentation Foundation implementation on the .NET Micro Framework. All display items descend from the class UIElement. This class provides a set of core behaviors and properties common to all display elements. ...

Get Embedded Programming with the Microsoft® .NET Micro Framework 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.