Chapter 1. Hello, Modern Windows
Listing 1.1. Code for the Tweet class in the Model folder
Listing 1.2. Updated UI with the ListBox of Tweets
Listing 1.3. Code-behind for the application’s main page
Chapter 4. XAML
Listing 4.1. XAML showing a hierarchy of nested objects
Listing 4.2. Namespaces in XAML
Listing 4.3. Specifying a property value inline using an XML attribute
Listing 4.4. Specifying a property value using property element syntax
Listing 4.5. A more complex example of the property element syntax
Listing 4.6. Dependency property precedence rules in practice
Listing 4.7. Attached properties in use
Listing 4.8. XAML with nested elements
Listing 4.9. The code-behind that does the actual processing
Listing 4.10. Without namescope, the button’s name would be duplicated in the tree
Listing 4.11. Code that uses multiple instances of the example control
Chapter 5. Layout
Listing 5.1. Layout rounding in action with two rectangles
Chapter 6. Panels
Listing 6.1. Left and Top attached properties
Listing 6.2. Positioning elements in Z space using Canvas.ZIndex
Listing 6.3. The gray rectangle won’t show up because it has no size
Listing 6.4. StackPanel with vertically arranged child elements
Listing 6.5. Defining rows and columns from markup
Listing 6.6. Defining rows and columns from code
Listing 6.7. Positioning child elements in the grid
Listing 6.8. Positioning and sizing elements using alignment and margins
Listing 6.9. The empty OrbitPanel class
Listing 6.10. The Orbits property