Tài liệu Silverlight 4 ppt

532 485 0
  • Loading ...
1/532 trang
Tải xuống

Thông tin tài liệu

Ngày đăng: 18/02/2014, 06:20

Nick LecrenskiWrox Programmer to Programmer™Join the discussion @ p2p.wrox.comSilverlight™ 4Problem - Design - SolutionLecrenski $49.99 USA $59.99 CANWeb Development/ASP.NETwrox.comProgrammer ForumsJoin our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world. Code Downloads Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use. Read More Find articles, ebooks, sample chapters and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.Silverlight 4 boasts long-awaited features that conquer writing a Rich Internet Application. Using new line-of-business features in this book, you create a web application that’s more responsive than a traditional ASP.NET web site. Leveraging new features and the improved Silverlight Toolkit, in each chapter you’ll work through the problem statement, design analysis, and solution implementation.Silverlight 4: Problem–Design–Solution: • Explains how to determine functional requirements for your site• Details the latest features, such as charting, enhanced data entry controls, navigation framework, and element to element binding• Covers the new Silverlight Toolkit featuring themes, charting, and layout management• Uses the new .NET RIA Services for your middle tier and data access layers• Utilizes existing Silverlight ASP.NET membership, authentication, and profile services• Illustrates adding social networking to the application using a Silverlight based MySpace application• Addresses generating revenue with Pay-Per-Click advertisements from Google AdSense™ and recurring monthly subscriptions using the PayPal® developer API• Shows how to leverage the ASP.NET AJAX Control Toolkit to incorporate HTML content into a Silverlight application• Includes step-by-step deployment instructions to host the site with a real shared hosted provider, Discount ASP.NETNick Lecrenski is the founder and lead developer of MyFitnessJournal.com, a popular fitness tracking web site developed entirely in Silverlight.Wrox Problem – Design – Solution references give you solid, workable solutions to real-world development problems. Each chapter is devoted to a different scenario, analyzing every problem, examining relevant design issues, and implementing the ideal solution.Create a fully functional application using Silverlight 4ProblemDesignSolutionSilverlight™ 4www.it-ebooks.infoRelated Wrox BooksASP.NET MVC 1.0 Test Driven Development Problem – Design – Solution ISBN: 978-0-470-44762-8 A hands-on guide to creating a complete ASP.NET site using Test Driven Development methods. Shows how ASP.NET MVC is well suited to TDD and testability. Covers the complete lifecycle including design, testing, deployment, beta releases, refactoring, and tool and framework selection.ASP.NET MVC 1.0 Website Programming Problem – Design – SolutionISBN: 978-0-470-41095-0 A hands-on guide to creating ASP.NET websites using MVC. The book solves some of the most common problems that programmers run into when creating their first application or when trying to upgrade a current application to this new technology, and demonstrates each concept while building TheBeerHouse application.Beginning ASP.NET MVC 1.0 ISBN: 978-0-470-43399-7This book is a great choice for those who already have ASP.NET knowledge and need to grasp the new concepts of ASP.NET MVC. Readers will learn about Test-Driven Development and unit testing, the principles of the MVC pattern and its role in TDD, how to implement the pattern and how to move from traditional ASP.NET webforms to ASP.NET MVC. The book also includes detailed case studies that can be applied in real world situations. Professional ASP.NET 3.5 AJAXISBN: 978-0-470-39217-1 This book is aimed at experienced ASP.NET developers looking to add AJAX to their applications, and experienced Web developers who want to move to using ASP.NET and AJAX together. Professional ASP.NET 4: in C# and VB ISBN: 978-0-470-50220-4 Written by three highly recognized and regarded ASP.NET experts, this book provides all-encompassing coverage on ASP.NET 4 and offers a unique approach of featuring examples in both C# and VB, as is the incomparable coverage of core ASP.NET. After a fast-paced refresher on essentials such as server controls, the book delves into expert coverage of all the latest capabilities of ASP.NET 4. You’ll learn site navigation, personalization, membership, role management, security, and more. Professional ASP.NET MVC 1.0ISBN: 978-0-470-38461-9 This book begins with you working along as Scott Guthrie builds a complete ASP.NET MVC reference application, NerdDinner.com. He begins by starting a new project and incrementally adding functionality and features. Along the way you’ll cover how to create a database, build a model layer with business rule validations, implement listing/details data browsing, provide CRUD (Create, Update, Delete) data form entry support, reuse UI using master pages and partials, secure the application using authentication and authorization, and implement automated unit testing. From there, the bulk of the rest of the book goes into the ways that MVC is different from ASP.NET Web Forms, exploring the structure of a standard MVC application and see what you get out of the box. The last third of the book focuses entirely on advanced techniques and extending the framework.Silverlight 3 Programmer’s ReferenceISBN: 978-0-470-38540-1 This valuable reference—in full color—explains this release of Silverlight 3 which makes the development of powerful Rich Interactive Applications (RIAs) achievable for everyone. Packed with examples and written by a highly-seasoned team of developers and designers, this book guides you through the languages, tools, and techniques that are used to build applications on the Silverlight 3 platform.WPF Programmer’s Reference: Windows Presentation Foundation with C# 2010 and .NET 4 ISBN: 978-0-470-47722-9 Written by a leading expert on Microsoft graphics programming, this richly illustrated book provides an introduction to WPF development and explains fundamental WPF concepts.Get more out of wrox.comProgrammer to Programmer™InteractTake an active role online by participating in our P2P forums @ p2p.wrox.comWrox Online LibraryHundreds of our books are available online through Books24x7.comWrox Blox Download short informational pieces and code to keep you up to date and out of trouble!Join the CommunitySign up for our free monthly newsletter at newsletter.wrox.com BrowseReady for more Wrox? We have books and e-books available on .NET, SQL Server, Java, XML, Visual Basic, C#/ C++, and much more!Contact Us. We always like to get feedback from our readers. Have a book idea? Need community support? Let us know by e-mailing wrox-partnerwithus@wrox.comwww.it-ebooks.infoSILVERLIGHT™ 4 PROBLEM  DESIGN  SOLUTIONINTRODUCTION xvCHAPTER 1 FitnessTrackerPlus 1CHAPTER 2 Prepare to Be Popular 19CHAPTER 3 Sign Me Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87CHAPTER 4 Welcome Home . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141CHAPTER 5 One More Slice Can’t Hurt 193CHAPTER 6 Time to Hit the Gym 233CHAPTER 7 Am I Working Hard Enough? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279CHAPTER 8 Unfinished Business . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313CHAPTER 9 Sharing Your Success . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349CHAPTER 10 Social Networking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387CHAPTER 11 This Site Doesn’t Run Itself 423CHAPTER 12 Let’s Go Live . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489534045ffirs.indd 1 3/16/10 9:35:31 AMwww.it-ebooks.info534045ffirs.indd 2 3/16/10 9:35:31 AMwww.it-ebooks.infoSilverlightTM 4Problem – Design – solutionNick Lecrenski534045ffirs.indd 3 3/16/10 9:35:31 AMwww.it-ebooks.infoSilverlightTM 4: Problem – Design – SolutionPublished by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.comCopyright © 2010 by Wiley Publishing, Inc., Indianapolis, IndianaPublished simultaneously in CanadaISBN: 978-0-470-53404-5Manufactured in the United States of America10 9 8 7 6 5 4 3 2 1No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions.Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or pro-motional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the pub-lisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was written and when it is read.For general information on our other products and services please contact our Customer Care Department within the United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books.Library of Congress Control Number: 2009940875Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Programmer to Programmer, and related trade dress are trade-marks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. Silverlight is a trademark of Microsoft Corporation in the United States and/or other countries. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book.534045ffirs.indd 4 3/16/10 9:35:31 AMwww.it-ebooks.infoThis book is dedicated to my beautiful wife Kristie, my daughter Tabetha, and our newest addition to the family, baby Cheyenne. Without their collective patience over the last nine months this book would not have been possible.— Ni c k Le c r e N s k i534045ffirs.indd 5 3/16/10 9:35:31 AMwww.it-ebooks.infoACQUISITIONS EDITORPaul ReesePROJECT EDITORMaureen SpearsTECHNICAL EDITORJonathan MarbuttPRODUCTION EDITORSTim Tate Amy WeintraubCOPY EDITORNancy RappaportEDITORIAL DIRECTORRobyn B. SieskyEDITORIAL MANAGERMary Beth WakefieldASSOCIATE DIRECTOR OF MARKETINGDavid MayhewPRODUCTION MANAGERTim TateVICE PRESIDENT AND EXECUTIVE GROUP PUBLISHERRichard SwadleyVICE PRESIDENT AND EXECUTIVE PUBLISHERBarry PruettASSOCIATE PUBLISHERJim MinatelPROJECT COORDINATOR, COVERLynsey StanfordCOMPOSITORCraig Johnson, Happenstance Type-O-RamaPROOFREADERSJosh Chase, Word OneCarrie Hunter, Word OneScott Klemp, Word OneINDEXERJohnna VanHoose DinseCOVER DESIGNMichael E. TrentCOVER IMAGE© Valueline/PunchstockCREDITS534045ffirs.indd 6 3/16/10 9:35:31 AMwww.it-ebooks.infoABOUT THE AUTHORNICK LECRENSKI is a developer with 10 years of experience in a wide range of Microsoft technologies including Visual C++, C#, VB, VB.NET, SQL Server, .NET Framework, ASP.NET, AJAX, Silverlight and more. He has a BS in Computer Science and has worked in various fields from biometrics to financial services. He is also the founder/lead developer of MyFitnessJournal.com, a fitness training website that currently utilizes Silverlight technology and has thousands of registered users. ABOUT THE TECHNICAL EDITORJONATHAN MARBUTT is Vice President of Development for WayCool Software, Inc. based in Birmingham, AL. He has been working professionally in software development since 1996 and has covered various Microsoft technologies from VB6 to .NET. Over the recent years, Jonathan developed using Silverlight to build Rich Internet Line-of-Business applications for the non-profit sector. Through this development, he’s focused on User Experience (UX) by utilizing Microsoft products such as Expression Blend and technologies such as Silverlight. You can contact Jonathan at http://www.jmtechware.com.534045ffirs.indd 7 3/16/10 9:35:31 AMwww.it-ebooks.infoACKNOWLEDGMENTSWRITING A TECHNICAL BOOK LIKE THIS ONE is an eye-opening experience. For years, I have been on the other side as the reader of hundreds of books on topics ranging from video game programming to the latest version of ASP.NET. I’ve never given much thought about how much work actually goes into the writing and producing one of those aforementioned books. Now, as a first-time writer who has completed his first book, I can safely say I’ll never take the hard work that authors and publishers perform for granted again. With that said, I want to take the time to thank everyone who helped to make this book possible. First, I want to thank my wife, who despite being pregnant with a due date scheduled right smack in the middle of writing this book, continued to encourage the work that I was doing and put up with many weekends of marathon writing sessions. Needless to say, my chore list has grown since the book started. Next, I want to thank my daughter Tabetha, who I could only take to one Mets game this year because of my busy schedule. Luckily, the team was terrible so it wasn’t much of a sacrifice.Completing a book like this one involves months of hard work from not just me but also the hard-working team at Wrox Press. I can’t even begin to convey just how dedicated and professional the Wrox Press team is when it comes to publishing new books but I will make an attempt by thanking those who were directly involved in the completion and success of Silverlight 4 Problem-Design-Solution.For starters, I want to thank Maureen Spears who was the Project Editor for this book. As a first time writer, it is imperative to be paired with an editor who has a lot of patience. Luckily, I had Maureen on my side throughout the process. Whether it was a breaking change in a beta release or some other crazy issue threatening to sabotage me from hitting a deadline, Maureen was always the calm voice of reason that would assure me that there was nothing to worry about and these things happen all the time. More often than not, just knowing that I wasn’t the only writer to hit these roadblocks was usually enough to get me to the next milestone. In addition to Maureen, I also had a wonderful Copy Editor in Nancy Rappaport, who no doubt had her hands full with this project. Thanks to her diligent work, the chapters make logical sense and are grammatically correct. As a full-time software developer, grammar isn’t always the first thing on my mind when I write. Of course, although my full-time focus is on programming, when you write a technical book it is vital to have the content reviewed by another professional software developer to ensure that the author doesn’t lose the audience along the way. My Technical Editor, Jonathan Marbutt, was an invaluable resource, ensuring that the chapter code not only compiled but also by reviewing the topics discussed in the accompanying chapter.Finally, I want to thank the two people from Wrox who made this book possible in the first place. Thanks to Paul Reese, the Acquisitions Editor, who from the very beginning was there to help me convert my idea for a book into a real proposal that would eventually kick off the project. Lastly, I’d like to thank Jim Minatel, the Associate Publisher, who I first contacted with the idea. Thanks again, Paul and Jim, for taking the time to listen to my original idea, for providing me with this great opportunity, and for taking a chance on this first-time writer.534045ffirs.indd 8 3/16/10 9:35:31 AMwww.it-ebooks.info[...]... Which Revenue Solution is the Right One? Solution 42 4 42 4 42 6 42 8 42 9 Google AdSense PayPal 42 9 43 6 Summary 46 1 Chapter 12: Let’s Go Live 46 3 Problem Design 46 3 46 4 Supplemental Pages Shared Hosting Providers 46 4 46 8 Solution Summary 46 8 48 7 Index 48 9 xiii www.it-ebooks.info 5 340 45ftoc.indd 13 3/13/10 4: 48:56 PM www.it-ebooks.info 5 340 45flast.indd 14 3/16/10 9:38:39 AM Introduction Through the years, ... 387 388 MySpace MySpace Silverlight SDK FitnessTrackerPlus — MySpace Application Requirements Solution 388 389 391 3 94 397 Getting Started FitnessTrackerPlus MySpace Application Summary 397 40 0 42 1 Chapter 11: This Site Doesn’t Run Itself Generating Revenue for FitnessTrackerPlus Problem 42 3 42 3 42 3 xii www.it-ebooks.info 5 340 45ftoc.indd 12 3/13/10 4: 48:56 PM CONTENTS Design 42 4 Advertising-Based Solutions... Dashboard Design 142 142 142 143 143 143 User Home Page Navigation Menu Site Announcements Account Settings Theme Selection Fitness Summaries 144 1 54 155 156 157 158 Solution 158 Global Variables Navigation Menu User Home Page Dashboard Account Settings Theme Selection Site Announcements Fitness Summaries 159 159 165 169 172 180 186 191 Summary 191 x www.it-ebooks.info 5 340 45ftoc.indd 10 3/13/10 4: 48:56 PM... Tier Logical Tier 84 84 Summary 86 www.it-ebooks.info 5 340 45ftoc.indd 9 3/13/10 4: 48:56 PM CONTENTS Chapter 3: Sign Me Up 87 Problem Design 87 89 Home Page User Registration Login Control 90 92 97 Solution 98 Main Landing Page Home View User Registration Login Control Dashboard Supplemental Pages URI Mapping 98 107 109 1 34 138 139 140 Summary 140 Chapter 4: Welcome Home Problem 141 141 Adding Navigation... be discussing detailed API information for Silverlight and the various controls; however, all of this information is available by downloading the official Silverlight 4 documentation from http://www .silverlight. net This book will be taking you through the creation of a fully functional Silverlight 4 line-of-business www.it-ebooks.info 5 340 45c01.indd 1 3/13/10 4: 53:23 PM 2  ❘  Chapter 1   FitnessTrackerPlus... 307 Summary 311 xi www.it-ebooks.info 5 340 45ftoc.indd 11 3/13/10 4: 48:56 PM CONTENTS Chapter 8: Unfinished Business Problem Design 313 3 14 3 14 Food Summary Exercise Summary Measurement Summary Printing Support 315 317 318 319 Solution 319 Food Summary Exercise Summary Measurement Summary 320 333 338 Summary 347 Chapter 9: Sharing Your Success Problem Design 349 350 351 Public Journal Settings Public... page xix www.it-ebooks.info 5 340 45flast.indd 19 3/16/10 9:38 :40 AM www.it-ebooks.info 5 340 45flast.indd 20 3/16/10 9:38 :40 AM 1 FitnessTrackerPlus An Overview of the FitnessTrackerPlus Application In the fall of 2008, Microsoft released an update to its new media-centric browser plug-in Silverlight This update probably wasn’t very exciting to end users who may have had Silverlight installed to watch... Design 193 193 1 94 User Stories Requirements Food Log 195 196 196 Solution 200 User Interface Database Data Access Business Logic User Interface Code Behind 201 2 14 2 14 2 14 217 Summary 232 Chapter 6: Time to Hit the Gym Problem Design 233 2 34 2 34 User Stories Requirements Exercise Log 235 235 236 Solution 241 User Interface Database Data Access Business Logic User Interface Code Behind 242 255 256 257... found in Silverlight 4 and the Silverlight Toolkit The following is a brief outline of what each chapter will be covering ➤➤ Chapter 1: Overview of FitnessTrackerPlus ➤➤ Chapter 2: Multi-Tier Architecture, XAML, Silverlight 4 Overview, LINQ to SQL, Entity Framework, SQL Server 2008, WCF RIA Services ➤➤ Chapter 3: WCF RIA Services with ASP.NET Membership, Role, and Profile providers ➤➤ Chapter 4: Silverlight. .. catchy Web 2.0 name like Google or Twitter that works well for a fitness-tracking web site www.it-ebooks.info 5 340 45c01.indd 2 3/13/10 4: 53:23 PM Design  ❘  3 Design In this book, you will be creating a Silverlight 4 web application and will be utilizing the new features included in Silverlight 4 to provide the user with a rich user interface that is more responsive than a traditional ASP.NET web site . AdSense 42 9PayPal 43 6Summary 46 1let’s go live 46 ChaPter 12: 3Problem 46 3Design 46 4Supplemental Pages 46 4Shared Hosting Providers 46 8Solution 46 8Summary. PMwww.it-ebooks.infoxiiiCONTENTSDesign 42 4Advertising-Based Solutions 42 4Google AdSense 42 4Recurring Monthly Fees 42 6Which Revenue Solution is the Right One? 42 8Solution 42 9Google
- Xem thêm -

Xem thêm: Tài liệu Silverlight 4 ppt, Tài liệu Silverlight 4 ppt, Tài liệu Silverlight 4 ppt

Gợi ý tài liệu liên quan cho bạn