HAPPY BOOKSGIVING
Use code BOOKSGIVING during checkout to save 40%-55% on books and eBooks. Shop now.
Register your product to gain access to bonus material or receive a coupon.
Full Color
INCLUDES COMPLETE CODE AND ASSETS FOR EACH APP IN THIS VOLUME!
Got a great idea for an app? There’s a chapter for that!
Calling all developers: Windows Phone 7 is starting to gain traction, and the opportunity is yours to sell the next killer app! 101 Windows Phone 7 Apps is a book series like no other–best-selling author and Microsoft developer Adam Nathan walks you through the process of building 101 real, robust, diverse, and marketplace-certified Silverlight applications. You not only get online access to the full source code and related assets, but the book is chock full of tips, warnings, and advice that can only come from Adam’s experience of writing so many complete applications and selling them in the Windows Phone Marketplace.
Imagine how long it would take you to develop and test 50 apps and how much you would learn from the experience. Rather than spending all that time starting from scratch, use this book to hit the ground running! Whether you simply make cosmetic changes to apps in this book (for example, creating kid-themed versions), repurpose apps (such as building a mortgage calculator based on Chapter 10’s tip calculator), or build something completely unique, this book can greatly accelerate your development time and help you create high-quality apps. Sell your apps in the Windows Phone Marketplace and make this book pay for itself!
Volume I contains the first 50 apps and covers the following:
101 Windows Phone 7 Apps: In Case of Emergency
Introduction 1
Part I: Getting Started
Chapter 1: Tally 17
The Application Manifest
Capabilities
Icons
Splash Screen
XML Namespaces
Status Bar
Phone Theme Resources
Naming XAML-Defined Elements
Button
Chapter 2: Flashlight 39
Application Bar
Timers
Brushes
Message Box
Chapter 3: In Case of Emergency 61
Orientation
On-Screen Keyboard
Hardware Keyboard
Text Box
Input Scopes
Scroll Viewer
Size Properties
Margins and Padding
Emulator-Specific Code
Chapter 4: Stopwatch 89
Grid
StackPanel
User Controls
Alignment
Progress Bar
Visibility
Orientation Lock
Chapter 5: Ruler 123
Canvas
Vector Graphics
Slider
Repeat Button
Hardware Back, Start, & Search
Buttons
Hit Testing
Content Controls
Chapter 6: Baby Sign Language 153
Page Navigation
Data Binding
Data Templates
List Box
Image
Resource Versus Content Build
Actions
Chapter 7: Date Diff 185
Silverlight for Windows Phone
Toolkit
Date Picker
Chapter 8: Vibration Composer 191
Vibration
Wrap Panel
Running While the Screen is
Locked
Getting Coordinates of an
Element
The Tag Property
Line Breaks
Chapter 9: Fake Call 207
Resources
Styles
Time Picker
Text Line Height
Disabling Automatic Screen Lock
Chapter 10: Tip Calculator 235
Application Lifecycle
Control Templates
Routed Events
Theme Detection
Toggle Button, Radio Button,
& Check Box Controls
List Box Items
Data Binding to a Named Element
Chapter 11: XAML Editor 271
Dynamic XAML
Popup
TextBox Manipulation
Background Worker
Copy & Paste
Part II: Transforms & Animations
Chapter 12: Silly Eye 301
Animation
Event Triggers
Named Resources
Settings Page
Color Picker
Clipping
Chapter 13: Metronome 327
2D Transforms
Animating Rotation
Animation Completed Event
Frame Rate Counter
Chapter 14: Love Meter 347
Keyframe Animations
Animating Scale
Checking Storyboard Status
Chapter 15: Mood Ring 361
Color Animations
Property Paths
Gradient Brushes
Object Animations
Point Animations
Drop Shadows
Chapter 16: Lottery Numbers Picker 377
Sharing Animations
Creating Animations in C#
Looping Selector
Chapter 17: Pick a Card Magic Trick 395
3D Transforms
Opacity Masks
Image Brush
One-Time Actions
Chapter 18: Cocktails 413
Quick Jump Grid
Dependency Properties
URL Encoding & Decoding
Storyboards as Timers
Indeterminate Progress Bars
Long List Selector
Chapter 19: Animation Lab 441
Custom Controls
Visual State Manager
Bitmap Caching
Tilt Effect
Part III: Storing & Retrieving Local Data
Chapter 20: Alarm Clock 463
Isolated Storage
Settings
Settings Page Guidelines
Toggle Switch
Using Custom Fonts
Runs
Chapter 21: Passwords & Secrets 493
Encryption & Decryption
Password Box
Value Converters
DateTimeOffset
Observable Collections
INotifyPropertyChanged
Chapter 22: Notepad 527
Reading & Writing Files
Chapter 23: Baby Milestones 545
Reading & Writing Pictures
Serialization
Two-Way Data Binding
Chapter 24: Baby Name Eliminator 565
Local Databases
Shipping Data with Your App
Chapter 25: Book Reader 587
Pagination
List Picker
Stretching List Box Items
Part IV: Pivot, Panorama, Charts, & Graphs
Chapter 26: TODO List 611
Pivot
Context Menu
Data Contract Attributes
Chapter 27: Groceries 649
Panorama
Chapter 28: Alphabet Flashcards 675
Filmstrip-Style Swiping
Chapter 29: Weight Tracker 681
Charts & Graphs
Part V: Audio & Video
Chapter 30: Cowbell 711
Playing Sound Effects
Composition Target’s Rendering
Event
Chapter 31: Trombone 719
Sound Manipulation
Sound Looping
SoundEffectInstance
Chapter 32: Local FM Radio 731
Radio Tuner
The
NetworkInterface.InterfaceType
Property
Chapter 33: Subservient Cat 743
Playing Video
MediaElement
Part VI: Microphone
Chapter 34: Bubble Blower 759
Sound Detection
Reversing a Slider
Chapter 35: Talking Parrot 775
Microphone Audio Playback
Chapter 36: Sound Recorder 797
Saving Audio Files
Playing Sound Backwards
Multi-Selection List Box
Part VII: Touch & Multi-Touch
Chapter 37: Reflex Test 827
The Touch.FrameReported Event
Touch Points
Chapter 38: Musical Robot 839
Multi-Touch
Tracking Individual Fingers
Chapter 39: Paint 847
Ink Presenter
Manual Serialization and
Deserialization
XmlSerializer
DataContractSerializer
DataContractJsonSerializer
Undo & Redo
Chapter 40: Darts 875
Gesture Listener
Manipulation Events
Flick Gesture
Direct Hit Testing
Chapter 41: Deep Zoom Viewer 897
Pinch & Stretch Zooming Gestures
Double-Tap Gesture
MultiScaleImage
Chapter 42: Jigsaw Puzzle 913
Drag Gesture
Image Cropping
WriteableBitmap
Taking Phone Screenshots
Chapter 43: Spin the Bottle! 945
Rotate Gesture
Simulating Inertia
Part VIII: Accelerometer Tricks
Chapter 44: Boxing Glove 951
Accelerometer Basics
Chapter 45: Coin Toss 965
Throwing Detection
Chapter 46: Noise Maker 981
Shaking Detection
Chapter 47: Moo Can 993
Turning-Over Detection
AccelerometerHelper
Data Smoothing
Accelerometer Calibration
Chapter 48: Level 1007
Determining the Phone’s Angle
Chapter 49: Balance Test 1019
2D Motion
Chapter 50: Pedometer 1035
Analyzing Walking Motion
Part IX: Appendices
Appendix A: Lessons Index 1049
Appendix B: XAML Reference 1059
Appendix C: Theme Resources Reference 1073
Appendix D: Animation Easing Reference 1083
Appendix E: Geometry Reference 1089
Index 1097