Programming Windows Phone7, Microsoft Silverlight Edition(English, Paperback, Petzold Charles)
Quick Overview
Product Price Comparison
Bring your app ideas to life-with guidance from a Windows programming legend Get started building your own apps and utilities for Windows Phone 7-expertly guided by award-winning author Charles Petzold. Focusing on Silverlight for Windows Phone 7 and the C# language, you'll learn how to extend your existing skills to this new mobile platform-mastering the core tools and techniques you need to get productive quickly. As always, Charles brings a unique combination of pragmatism and inspiration to his instruction-along with a wealth of hands-on examples. How to Discover Customize page navigation and layout Know when to use code vs. XAML markup Capture and embed bitmaps, balancing performance issues Support multi-touch input-including tap, drag, flick, and pinch Work with accelerometer and location services Experiment with panoramic and pivot controls Create effects using built-in or custom animations Manage state, tombstoning, data-binding, and storage Write your own templates and custom controls Test-drive your app on Windows Phone Emulator About the Author Charles Petzold has been writing about programming for Windows-based operating systems for 24 years. A Microsoft MVP for Client Application Development and a Windows pioneer Award winner, Petzold is author of the classic Programming Windows, currently in its fifth edition and one of the best-known programming books of all time; the widely acclaimed Code: The Hidden Language of Computer Hardware and Software; and more than a dozen other books. Table Of Contents Part I The Basics 1 Hello, Windows Phone 7 2 Getting Oriented 3 An Introduction to Touch 4 Bitmaps, Also Known as Textures. 5 Sensors and Services 6 Issues in Application Architecture Part II Silverlight 7 XAML Power and Limitations 8 Elements and Properties 9 The Intricacies of Layout 10 The App Bar and Controls 11 Dependency Properties 12 Data Bindings 13 Vector Graphics 14 Raster Graphics 15 Animations 16 The Two Templates 17 Items Controls 18 Pivot and Panorama . Introduction Part I The Basics 1 Hello, Windows Phone 7 Targeting Windows Phone 7 The Hardware Chassis Sensors and Services File I New I Project A First Silverlight Phone Program The Standard Silverlight Files Color Themes Points and Pixels The XAP is a ZIP An XNA Program for the Phone 2 Getting Oriented Silverlight and Dynamic Layout Orientation Events XNA Orientation Simple Clocks (Very Simple Clocks) 3 An Introduction to Touch Low-Level Touch Handling in XNA The XNA Gesture Interface Low-Level Touch Events in Silverlight The Manipulation Events Routed Events Some Odd Behavior? 4 Bitmaps, Also Known as Textures XNA Texture Drawing The Silverlight Image Element Images Via the Web Image and ImageSource Loading Local Bitmaps from Code Capturing from the Camera The Phone's Photo Library 5 Sensors and Services Accelerometer A Simple Bubble Level Geographic Location Using a Map Service 6 Issues in Application Architecture Basic Navigation Passing Data to Pages Sharing Data Among Pages Retaining Data across Instances The Multitasking Ideal Task Switching on the Phone Page State Isolated Storage Xna Tombstoning and Settings Testing and Experimentation Part II Silverlight 7 XAML Power and Limitations A TextBlock in Code Property Inheritance Property-Element Syntax Colors and Brushes Content and Content Properties The Resources Collection Sharing Brushes x:Key and x:Name An Introduction to Styles Style Inheritance Themes Gradient Accents 8 Elements and Properties Basic Shapes Transforms Animating at the Speed of Video Handling Manipulation Events The Border Element TextBlock Properties and Inline More on Images Playing Movies Modes of Opacity Non-Tiled Tile Brushes 9 The Intricacies of Layout The Single-Cell Grid The StackPanel Stack Text Concatenation with StackF Nested Panels Visibility and Layout Two Scroll Viewer Applications The Mechanism of Layout Inside the Panel A Single-Cell Grid Clone A Custom Vertical StackPanel The Retro Canvas Canvas and Zlndex The Canvas and Touch The Mighty Grid 10 The App Bar and Controls ApplicationBar Icons Jot and Application Settings Jot and Touch Jot and the ApplicationBar Elements and Controls RangeBase and Slider The Basic Button The Concept of Content Theme Styles and Precedence The Button Hierarchy Toggling a Stopwatch Buttons and Styles TextBox and Keyboard Input 11 Dependency Properties The Problem Illustrated The Dependency Property Difference Deriving from UserControl A New Type of Toggle Panels with Properties Attached Properties 12 Data Bindings Source and Target Target and Mode Binding Converters Relative Source The "this" Source Notification Mechanisms A Simple Binding Server Setting the DataContext Simple Decision Making Converters with Properties Give and Take TextBox Binding Updates 13 Vector Graphics The Shapes Library Canvas and Grid Overlapping and ZIndex Polylines and Custom Curves Caps, Joins, and Dashes Polygon and Fill The Stretch Property Dynamic Polygons The Path Element Geometries and Transforms Grouping Geometries The Versatile Path Geometry The ArcSegment Bezier Curves The Path Markup Syntax How This Chapter Was Created 14 Raster Graphics The Bitmap Class Hierarchy WriteableBitmap and UlElement The Pixel Bits Vector Graphics on a Bitmap Images and Tombstoning Saving to the Picture Library Becoming a Photo Extras Application 15 Animations Frame-Based vs. Time-Based Animation Targets Click and Spin Some Variations XAML- Based Animations A Cautionary Tale Key Frame Animations Trigger on Loaded Animating Attached Properties (or Not) Splines and Key Frames The Bouncing Ball Problem The Easing Functions Animating Perspective Transforms Animations and Property Precedence 16 The Two Templates ContentControl and DataTemplate Examining the Visual Tree ControlTemplate Basics The Visual State Manager Sharing and Reusing Styles and Templates Custom Controls in a Library Variations on the Slider The Ever-Handy Thumb Custom Controls 17 Items Controls Items Controls and Visual Trees Customizing Item Displays ListBox Selection Binding to ItemsSource Databases and Business Objects Fun with DataTemplates Sorting Changing the Panel The DataTemplate Bar Chart A Card File Metaphor 18 Pivot and Panorama Compare and Contrast Music by Composer The XNA Connection The XNA Music Classes: MediaLibrary Displaying the Albums The XNA Music Classes: MediaPlayer . Index