2.1. Adding a Custom Class2.1.1. Problem2.1.2. Solution2.1.3. How It Works2.1.4. The Code2.2. Adding a Custom Control2.2.1. Problem2.2.2. Solution2.2.3. How It Works2.2.4. The Code2.3. Using the FindName Method2.3.1. Problem2.3.2. Solution2.3.3. How It Works2.3.4. The Code2.4. Dynamically Loading XAML from JavaScript2.4.1. Problem2.4.2. Solution2.4.3. How It Works2.4.4. The Code2.5. Dynamically Loading XAML from Managed Code2.5.1. Problem2.5.2. Solution2.5.3. How It Works2.5.4. The Code2.6. Persisting Data on the Client2.6.1. Problem2.6.2. Solution2.6.3. How It Works2.6.4. The Code2.7. Opening a Local File from a Silverlight Application2.7.1. Problem2.7.2. Solution2.7.3. How It Works2.7.4. The Code2.8. Accessing XML Data with an XmlReader2.8.1. Problem2.8.2. Solution2.8.3. How It Works2.8.4. The Code2.9. Accessing XML Data with LINQ2.9.1. Problem2.9.2. Solution2.9.3. How It Works2.9.4. The Code2.10. Managing Unhandled Exceptions2.10.1. Problem2.10.2. Solution2.10.3. How It Works2.11. Executing Work on a Background Thread with Updates2.11.1. Problem2.11.2. Solution2.11.3. How It Works2.11.4. The Code2.12. Updating the UI from a Background Thread2.12.1. Problem2.12.2. Solution2.12.3. How It Works2.12.4. The Code2.13. Managing XAML Resources2.13.1. Problem2.13.2. Solution2.13.3. How It Works2.13.4. The Code2.14. Managing Embedded Resources2.14.1. Problem2.14.2. Solution2.14.3. How It Works2.14.4. The Code2.15. Creating Silverlight Ruby, Python, or JScript2.15.1. Problem2.15.2. Solution2.15.3. How It Works2.15.4. The Code