Properties and Events in XAML

So far, you've considered a relatively unexciting example—a blank page that hosts an empty Grid control. Before going any further, it's worth introducing a more realistic page that includes several elements. Figure 2-1 shows an example with an automatic question answerer.

images

Figure 2-1. Ask the eight ball, and all will be revealed.

The eight ball page includes four elements: a Grid (the most common tool for arranging layout in Silverlight), two TextBox objects, and a Button. The markup that's required to arrange and configure these elements is significantly longer than the previous examples. Here's an abbreviated ...

Get Pro Silverlight 5 in VB 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.