Chapter 1. Introducing Silverlight
Listing 1.1. Processing the Twitter search results using LINQ to XML
Listing 1.2. DataTemplate to format the tweets
Chapter 2. Core XAML
Listing 2.1. XAML showing a hierarchy of nested objects
Listing 2.2. A basic XAML file referencing the two default namespaces
Listing 2.3. Using a control from an external assembly
Listing 2.4. Using a control from a different namespace in the same assembly
Listing 2.5. Namespace declaration at a level lower than the root
Listing 2.6. Specifying a property value in line using an XML attribute
Listing 2.7. Specifying a property value using property element syntax
Listing 2.8. A more complex example of the property element syntax
Listing 2.9. Dependency property precedence rules in practice
Listing 2.10. Attached properties in use
Listing 2.11. A MouseDragElementBehavior attached to a Border element
Listing 2.12. Using the VisualTreeHelper to walk the tree from an element to the root
Listing 2.13. Without namescope, the name MyButton would be duplicated in the tree
Listing 2.14. The Binding and StaticResource markup extensions in XAML
Listing 2.15. A type converter in action
Listing 2.16. A custom type converter that converts from a string to a border (C#)
Listing 2.17. A simple class that uses our custom type converter
Listing 2.18. XAML showing the custom Border type converter in use
Listing 2.19. Loading and parsing XAML at runtime
Listing 2.20. Mixing dynamic XAML with code