3.1. Importing Art from Expression Design3.1.1. Problem3.1.2. Solution3.1.3. How It Works3.2. Working with Color and Gradients in Blend3.2.1. Problem3.2.2. Solution3.2.3. How It Works3.2.4. The Code3.3. Positioning UI Elements3.3.1. Problem3.3.2. Solution3.3.3. How It Works3.3.3.1. Canvas3.3.3.2. StackPanel3.3.3.3. Grid3.3.4. The Code3.3.4.1. Code for Canvas3.3.4.2. Code for StackPanel3.3.4.3. Code for the Grid3.4. Drawing with Shapes, Paths, and Geometries3.4.1. Problem3.4.2. Solution3.4.3. How It Works3.4.3.1. Drawing with Shapes3.4.3.2. Drawing with Path Objects3.4.3.3. Drawing with Geometries3.4.4. The Code3.4.4.1. Drawing with Paths3.4.4.2. Drawing with Geometries3.5. Providing Scrollable Content3.5.1. Problem3.5.2. Solution3.5.3. How It Works3.5.4. The Code3.6. Applying a Border to Elements3.6.1. Problem3.6.2. Solution3.6.3. How It Works3.6.4. The Code3.7. Using Simple Animations with Objects3.7.1. Problem3.7.2. Solution3.7.3. How It Works3.7.4. The Code3.8. Animating UI Elements with Keyframes3.8.1. Problem3.8.2. Solution3.8.3. How It Works3.8.4. The Code3.9. Transforming an Object3.9.1. Problem3.9.2. Solution3.9.3. How It Works3.9.4. The Code3.10. Creating a Simple Cartoon Scene3.10.1. Problem3.10.2. Solution3.10.3. How It Works3.10.4. The Code3.11. Handling Keyboard Input3.11.1. Problem3.11.2. Solution3.11.3. How It Works3.11.3.1.3.11.3.1.1. For Macintosh-specific key codes, refer to3.11.4. The Code3.12. Working with Ink3.12.1. Problem3.12.2. Solution3.12.3. How It Works3.12.4. The Code3.13. Adding 3-D Effects to UI Elements3.13.1. Problem3.13.2. Solution3.13.3. How It Works3.13.4. The Code3.14. Dynamically Creating Bitmaps3.14.1. Problem3.14.2. Solution3.14.3. How It Works3.14.4. The Code3.15. Improving Graphic Animation and Video Performance3.15.1. Problem3.15.2. Solution3.15.3. How It Works3.15.4. The Code3.16. Improve Animation with Custom Easing Functions3.16.1. Problem3.16.2. Solution3.16.3. How It Works3.16.4. The Code3.17. Adding Pixel Shader Visual Effects3.17.1. Problem3.17.2. Solution3.17.3. How It Works3.17.4. The Code3.18. Create and Work with Design-Time Data in Expression Blend3.18.1. Problem3.18.2. Solution3.18.3. How It Works3.18.4. The Code3.19. Reuse Application Interactivity with Behaviors3.19.1. Problem3.19.2. Solution3.19.3. How It Works3.19.4. The Code3.20. Customizing the Right-Click Context Menu3.20.1. Problem3.20.2. How it Works3.20.3. The Code3.21. Accessing the Clipboard3.21.1. Problem3.21.2. How it Works3.21.3. The Code3.22. Using Right-to-Left Text3.22.1. Problem3.22.2. How it Works3.22.3. The Code3.23. Prototype Application Design3.23.1. Problem3.23.2. Solution3.23.3. How It Works3.23.4. The Code