O'Reilly logo

Microsoft® Silverlight® Edition: Programming Windows® Phone 7 by Charles Petzold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. The Intricacies of Layout

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required