Essential Windows Phone 7.5: Application Development with Silverlight docx

512 5.3K 0
Essential Windows Phone 7.5: Application Development with Silverlight docx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

ptg999 ptg999 Essential Windows Phone 7.5 ptg999 T he award-winning Microsoft .NET Development Series was established in 2002 to provide professional developers with the most comprehensive, practical coverage of the latest .NET technologies. Authors in this series include Microsoft architects, MVPs, and other experts and leaders in the field of Microsoft development technologies. Each book provides developers with the vital information and critical insight they need to write highly effective applications. Visit informit.com/msdotnetseries for a complete list of available products. Microsoft ® .NET Development Series ptg999 Essential Windows Phone 7.5 Application Development with Silverlight Shawn Wildermuth Upper Saddle River, NJ • Boston • Indianapolis • San Francisco New York • Toronto • Montreal • London • Munich • Paris • Madrid Capetown • Sydney • Tokyo • Singapore • Mexico City ptg999 Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals. The .NET logo is either a registered trademark or trademark of Microsoft Corporation in the United States and/or other countries and is used under license from Microsoft. Microsoft, Windows, Visual Basic, Visual C#, and Visual C++ are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A. and/or other countries/regions. The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein. The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales, which may include electronic versions and/or custom covers and content particular to your business, training goals, marketing focus, and branding interests. For more information, please contact: U.S. Corporate and Government Sales (800) 382-3419 corpsales@pearsontechgroup.com For sales outside the United States, please contact: International Sales international@pearson.com Visit us on the Web: informit.com/aw Library of Congress Cataloging-in-Publication Data Wildermuth, Shawn. Essential windows phone 7.5 : application development with silverlight / Shawn Wildermuth. p. cm. Includes index. ISBN 978-0-321-75213-0 (pbk. : alk. paper) 1. Windows phone (Computer file) 2. Silverlight (Electronic resource) 3. Operating systems (Computers) 4. Application software—Development. 5. Mobile computing—Programming. I. Title. QA76.59.W54 2012 005.4’46—dc23 2011036842 Copyright © 2012 Pearson Education, Inc. All rights reserved. Printed in the United States of America. This publication is protected by copy- right, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise. To obtain permission to use material from this work, please submit a written request to Pearson Education, Inc., Permissions Department, One Lake Street, Upper Saddle River, New Jersey 07458, or you may fax your request to (201) 236-3290. ISBN-13: 978-0-321-75213-0 ISBN-10: 0-321-75213-9 Text printed in the United States on recycled paper at RR Donnelley in Crawfordsville, Indiana. First printing, December 2011 ptg999 To m y friend a nd mentor, Chris S ells, without whom I would have never learned that the story is more important than the facts. ptg999 This page intentionally left blank ptg999 vii Contents at a Glance Figures xvii Table s xxv Foreword xxvii Preface xxix Acknowledgments xxxi About the Author xxxiii 1 Introducing Windows Phone 1 2 Writing Your First Phone Application 25 3 XAML Overview 61 4 Controls 89 5 Designing for the Phone 139 6 Developing for the Phone 187 7 Phone Integration 219 8 Databases and Storage 305 9 Multitasking 337 10 Services 369 11 The Marketplace 431 Index 459 ptg999 This page intentionally left blank ptg999 ix Contents Figures xvii Table s xxv Foreword xxvii Preface xxix Acknowledgments xxxi About the Author xxxiii 1 Introducing Windows Phone 1 A Different Kind of Phone 1 Integrated Experiences 6 Phone Specifications 7 Input Patterns 9 Designing for Touch 10 Hardware Buttons 11 Keyboards 11 Sensors 13 Application Lifecycle 14 Driving Your Development with Services 15 Live Tiles 16 The Marketplace 18 Distributing Your Application through the Marketplace 18 Marketplace Submissions 19 Application Policies 20 [...]... the foreword with xxvii xxviii Foreword an eye toward confirming your belief that Windows Phone is where it’s at, well, for that I can be accommodating I do this to honor you With the initial release of Windows Phone, and the subsequent pairing with Nokia, Microsoft is investing in building the third ecosystem for mobile developers The canvas with which mobile developers can work on Windows Phone is unlike... Android and iPhone left me wanting, and I put them aside Soon after my experience with iPhone and Android, Microsoft took the covers off its new phone platform: Windows Phone 7 For me, the real excitement was the development experience At that point I’d been teaching and writing about Silverlight since it was called WPF/E, so the ability to marry my interest in mobile development to my Silverlight knowledge... 137 FIGURE 4.40 Buttons in a vertical WrapPanel 138 FIGURE 5.1 Foursquare.com 140 FIGURE 5.2 Phone- sized app 141 FIGURE 5.3 Panorama application FIGURE 5.4 A sample Foursquare on Windows Phone FIGURE 5.5 Sample application navigation FIGURE 5.6 Single-page Windows Phone application FIGURE 5.7 Sample panorama application FIGURE 5.8 Panorama in the emulator FIGURE 5.9 Pivot example 142 145 146 146 148... the experiences the user needs Windows Phone provides the platform, and Silverlight is the engine to power those experiences A Different Kind of Phone When Microsoft originally unveiled Windows Phone 7 many skeptics expected the phone would simply try to play catch-up with Apple’s and Google’s offerings Microsoft had other plans, though The new operating system for the phone was a departure from existing... happily neck-deep in data binding, business application development, and teaching XAML The smartphone revolution clearly started with the iPhone What I find interesting is that the iPhone is really about the App Store, not the phone It’s a great device, but the App Store is what changed everything, providing a simple way to publish, market, and monetize applications for these handheld powerhouses that... Working with Behaviors 173 Phone- Specific Design 176 The ApplicationBar in Blend 176 Using the Panorama Control in Blend Using the Pivot Control in Blend Previewing Applications Where Are We? 185 179 182 185 6 Developing for the Phone 187 Application Lifecycle 187 Navigation 190 Tombstoning 195 The Phone Experience Orientation 200 201 Designing for Touch 203 Application Client Area Application Bar 211 213... announcing and releasing Windows Phone 7.5 (code-named Mango) I was left questioning whether to finish my Windows Phone 7 book or rush forward and mold all the new features of Windows Phone 7.5 into a book for this next version of the phone Obviously you know the answer to that question It has been a long road to get the right story for this book, and to help both beginners and existing Silverlight developers... Introducing Windows Phone T o some, the cell phone is an annoying necessity; to others, it’s a critical need Being able to use a phone to make calls everywhere has really changed the way people communicate In the past few years these phones have taken another leap forward With the introduction of iPhone and Android devices, the consumer market for an alwaysconnected device that can interact with the Internet,... Preparing Your Application The Submission Process After the Submission 439 445 451 Modifying Your Application 453 Dealing with Failed Submissions 454 Using Ads in Your Apps 457 Where Are We? 458 Index 459 407 405 xv This page intentionally left blank Figures FIGURE 1.1 Windows Phone Start screen FIGURE 1.2 Phone screen real estate 3 3 FIGURE 1.3 The application bar in action FIGURE 1.4 Panorama application. .. your first step on your journey to building Windows Phone apps It may be a refresher course Either way, with Shawn’s guidance, we know that you will come away from this experience feeling great about your prospects of building amazing mobile experiences for Windows Phone, and a firm belief that Microsoft puts the developers first when we think about Windows Phone Every developer matters Every Single . Data Wildermuth, Shawn. Essential windows phone 7. 5 : application development with silverlight / Shawn Wildermuth. p. cm. Includes index. ISBN 978 -0-321 -75 213-0 (pbk Containers 66 Visual Grammar 70 Shapes 71 Brushes 72 Colors 73 Tex t 74 Images 75 Transformations and Animations 77 Tra ns fo rm at ion s 77 Animations 80 XAML

Ngày đăng: 05/03/2014, 21:21

Từ khóa liên quan

Mục lục

  • Contents

  • Figures

  • Tables

  • Foreword

  • Preface

  • Acknowledgments

  • About the Author

  • 1 Introducing Windows Phone

    • A Different Kind of Phone

    • Integrated Experiences

    • Phone Specifications

    • Input Patterns

      • Designing for Touch

      • Hardware Buttons

      • Keyboards

      • Sensors

      • Application Lifecycle

      • Driving Your Development with Services

      • Live Tiles

      • The Marketplace

        • Distributing Your Application through the Marketplace

        • Marketplace Submissions

        • Application Policies

Tài liệu cùng người dùng

Tài liệu liên quan