One of the most important classes in all of Silverlight is Panel—the class that plays a starring role in the Silverlight layout system. You might expect such a crucial class to define many properties and events, but Panel defines only three properties on its own:
Background of type Brush
Children of type UIElementCollection
IsItemsHost of type bool
The first one is simple, and the third one is get-only and involves its role in ListBox and related classes.
The big one is the Children property. In the previous chapter you saw that the Border class defines a property named Child of type UIElement. This Children property defined by the Panel is of type UIElementCollection. Huge difference!
The Border doesn’t have a whole ...