- ホーム
- > 洋書
- > 英文書
- > Computer / General
Full Description
"Shawn has created a guide that is easy to read, up-to-date, and comprehensive-covering the entire application surface area for Windows Phone developers. Enjoy!"-Jeff Wilcox, Senior Software Development Engineer, MicrosoftEssential Windows (R) Phone 8 is the definitive guide to creating powerful mobile apps with Microsoft's dramatically improved Windows Phone 8 platform. Ten-time Microsoft MVP Shawn Wildermuth draws on his extensive experience teaching Windows Phone development, helping you to get started fast and master techniques that lead to truly outstanding solutions.Updated throughout, this edition reflects new APIs and development best practices, ranging from new WinRT APIs to voice integration. It also contains a comprehensive new chapter on developing enterprise solutions for business.After introducing the platform and its key improvements, Shawn dives directly into the essentials. Using realistic code, he illustrates today's best techniques for delivering robust, well-performing apps. You'll build a complete app from start to finish and then deepen your skills with increasingly sophisticated techniques.From planning through delivery, Shawn guides you through the entire lifecycle, helping you make the most of Windows Phone 8's valuable capabilities. Whether you're a Windows developer going mobile or a mobile developer moving to Windows Phone, here are all the skills you'll need.Coverage includesSetting up the WP8 development environment, including the emulatorUsing XAML to fully control the look and feel of your app's interfaceProviding robust user interactivity through controlsCreating mobile experiences built around the real needs of Windows Phone usersLocalizing your app for native languages and global marketsUtilizing vibration, motion, sound, the camera, or other hardware featuresSupporting voice commands such as "Call Mom" or "Open Twitter"Integrating features that use Contacts, Appointments, Alarms, the media library and hubs, and the lock screenStoring data in simple files, caches, or a full-fledged databaseMultitasking in the background without compromising performanceImplementing location-aware apps that can track where users areRetrieving external data and assets via REST, Web services, push notifications, or Windows LivePreparing your application for the Windows Phone StoreBuilding and distributing enterprise apps for your company's internal customers
Contents
1 Introducing Windows Phone 1A Different Kind of Phone 1Phone Specifications 7Input Patterns 10Designing for Touch 11Hardware Buttons 12Keyboards 12Sensors 15Application Lifecycle 15Driving Your Development with Services 17Live Tiles 18The Windows Phone Store 19Distributing Your Application Through the Windows Phone Store 20App Hub Submissions 20Application Policies 22Content Policies 25Where Are We? 262 Writing Your First Phone Application 27Preparing Your Machine 27Creating a New Project 29Visual Studio 29XAML 34Designing with Blend 39Adding Code 48Working with Events 51Debugging in the Emulator 52Debugging with a Device 53Using Touch 58Working with the Phone 61Where Are We? 663 XAML Overview 67What Is XAML? 67XAML Object Properties 69Understanding XAML Namespaces 70Naming in XAML 71Visual Containers 72Visual Grammar 77Shapes 77Brushes 79Colors 80Text 81Images 82Transformations and Animations 84Transformations 84Animations 87XAML Styling 90Understanding Resources 91Understanding Styles 93Where Are We? 964 Controls 97Controls in XAML 97Simple Controls 100Content Controls 106List Controls 107Phone-Specific Controls 108Panorama Control 108Pivot Control 112Data Binding 115Simple Data Binding 115Using a DataTemplate 117Improving Scrolling Performance 118Binding Formatting 120Element Binding 121Converters 121Data Binding Errors 123Control Templates 125Windows Phone Toolkit 130AutoCompleteBox Control 131ContextMenu Control 133DatePicker and TimePicker Controls 135ListPicker Control 137LongListSelector Control 140PerformanceProgressBar Control 144ToggleSwitch Control 145ExpanderView Control 146PhoneTextBox Control 147CustomMessageBox 149WrapPanel Layout Container 153Where Are We? 1565 Designing for the Phone 157The Third Screen 157It Is a Phone, Right? 160Deciding on an Application Paradigm 162Panorama 164Pivot 166Simple Pages 169Microsoft Expression Blend 169Creating a Project 170A Tour Around Blend 171Blend Basics 180Layout 180Brushes 186Creating Animations 191Working with Behaviors 196Phone-Specific Design 199The ApplicationBar in Blend 199Using the Panorama Control in Blend 203Using the Pivot Control in Blend 206Previewing Applications 209Designing with Visual Studio 210Implementing the Look and Feel of the Phone 212Where Are We? 2156 Developing for the Phone 217Application Lifecycle 217Navigation 220Tombstoning 227The Phone Experience 233Orientation 233Designing for Touch 236Application Client Area 245Application Bar 247Understanding Idle Detection 249The Tilt Effect 250Localizing Your Phone Application 252Where Are We? 2587 Phone Hardware 261Using Vibration 261Using Motion 262Emulating Motion 266Using Sound 268Playing Sound with MediaElement 269Using XNA Libraries 270Playing Sounds with XNA 270Adjusting Playback 271Recording Sounds 272Working with the Camera 275Using the PhotoCamera Class 276Raw Hardware Access 281Camera Lens App 284The Clipboard API 286Location APIs 287Location Permission 287Accessing Location Information 289Turning Coordinates into Addresses 294Emulating Location Information 295Voice Commands 299Speech Recognition 306Speech Synthesis 310Bluetooth and VOIP 316Where Are We? 3168 Phone Integration 317Contacts and Appointments 317Contacts 318Appointments 323Alarms and Reminders 324Creating an Alarm 327Creating a Reminder 328Accessing Existing Notifications 329Using Tasks 330Launchers 333Choosers 344Media and Picture Hubs 355Accessing Music 355Playing Music 359Accessing Pictures 360Storing Pictures 363Integrating into the Pictures Hub 364Integrating into the Music and Videos Hub 367Live Tiles 371Main Live Tile 375Secondary Tiles 377Other Ways of Launching Your App 380Using a Custom Protocol 380Using a File Association 384Where Are We? 3879 Databases and Storage 389Storing Data 389Storage 390Serialization 395Local Databases 401Getting Started 402Optimizing the Context Class 408Associations 412Using an Existing Database 418Schema Updates 420Database Security 422Where Are We? 42310 Multitasking 425Multitasking 425Background Agents 426Periodic Agent 428Resource-Intensive Agent 436Audio Agent 439Location-Aware Apps 448Background Transfer Service 452Requirements and Limitations 453Requesting Transfers 454Monitoring Requests 456Where Are We? 46111 Services 463The Network Stack 464The WebClient Class 464Accessing Network Information 467Consuming JavaScript Object Notation 470Using JSON Serialization 472Parsing JSON 473Web Services 477Consuming OData 482How OData Works 483The URI 484Using OData on the Phone 492Generating a Service Reference for OData 492Retrieving Data 493Updating Data 496Using Push Notifications 497Push Notification Requirements 499Preparing the Application for Push Notifications 499Setting Up the Server for Push Notifications 501Raw Notifications 504Sending Toast Notifications 516Creating Live Tiles 519Handling Push Notification Errors 522Where Are We? 52412 Making Money 525What Is the Store? 525How It Works 527Charging for Apps 529Getting Paid 531Submitting Your App 533Preparing Your Application 533The Submission Process 538After the Submission 545Modifying Your Application 548Dealing with Failed Submissions 548Using Ads in Your Apps 551Where Are We? 55213 Enterprise Phone Apps 553Enterprise Apps? 553Registering Your Company 554Buying a Symantec Code-Signing Certificate 556Installing the Certificate 558Application Enrollment Token 563Registering Phones 564Preparing Apps for Distribution 566Building a Company Hub 567Where Are We? 571Index 573