作者:Jonathan Swift, Salvador Alvarez Patuel, Chris Barker, Dan Wahlin
出版日期:February 3, 2009
出版社:Wrox Press
页数:672
ISBN:ISBN-10: 0470277750 ISBN-13: 978-0470277751
文件格式:PDF
Our overarching goal in writing this book was to give ASP.NETdevelopers the power to quickly and easily create visually stunningInternet applications, coupled with rich interactivity to fully immersethe user in a new online experience. Silverlight gives you everythingyou need to do just this, and in serious style!
As well as taking you through each feature that ships withSilverlight, this book will make sure you’re able to debug,troubleshoot, and performance-tune your Silverlight applications, aswell as seamlessly hook into your existing ASP.NET architecture andcode base.
This book is aimed at .NET developers and architects who want toquickly get up to speed with all that Silverlight 2 has to offer.
As well as covering the breadth of features that Silverlight 2provides, this book makes a point of demonstrating where necessary howthe particular feature can be integrated tightly with the ASP.NET hostapplication. An example is in Chapter 7, where the ASP.NET Profileservice is utilized directly from within Silverlight to obtainuser-specific data.
It’s fair to say that although this book is aimed at ASP.NETdevelopers, it covers all of the salient features of Silverlight 2 tothe degree that it’s a useful programming resource for developers notusing ASP.NET also.
If you’re fresh to .NET development, however, you might want tocheck out a beginning .NET book first, to help you overcome the syntaxand set-up queries when learning a new language. Otherwise, take a deepbreath and dive in!
This book covers the full feature set of Silverlight 2, diving intoeach of the subject areas to give depth and breadth coverage. As wellas teaching you about the component parts of the Silverlight API, thebook also covers debugging, troubleshooting, and performance-tuningyour Silverlight applications, arming you with all the skills andknowledge you’ll need to create advanced Silverlight-based applicationsin record time.
Importantly, this book covers the integration points between ASP.NETand Silverlight, taking you through the different techniques you canuse to seamlessly augment your existing or new ASP.NET web sites withthe power of Silverlight.
If you want to program in Silverlight and potentially use ASP.NET as the host, then this book covers it all.
The book is split into two distinct parts. Part I is titled“Silverlight Fundamentals for ASP.NET Developers,” and Part II istitled “Developing ASP.NET Applications with Silverlight.” Part I isintended to give you grounding in what Silverlight is as a technologyand how it fits into the Web-based landscape. The component pieces of aSilverlight application are also laid out at a high level, and anyknowledge required before putting an application together is explained.
Part II is written to give you depth of knowledge across theSilverlight feature-set and show you how to leverage the power of bothSilverlight and ASP.NET to create compelling applications.
A brief synopsis of the content follows:
“Silverlight in a Nutshell”—This will teach youat a high level what Silverlight is and how it can help you deliverengaging, immersive web applications. Differentiating Silverlight fromother Web-based technologies is also covered here, and a description ofthe required development environment is provided. In short, afterreading this, you’ll be able to describe Silverlight and explain whyyou’d want to use it and what gives it the edge over the competition.“Silverlight Architecture”—Silverlight allows youto rapidly build a well-rounded application with a great userinterface, but if you encounter any problems during development, it isgoing to be important for you to understand the underlying architectureupon which you are developing. This outlines the core features ofSilverlight 2 and guides you around the building blocks of this highlyflexible framework, paying particular attention throughout to yourASP.NET heritage.“XAML Condensed”—Quickly getting up to speed withXAML is what this is all about, helping you brush aside the syntaxqueries and get to grips with the basics of this multi-purposedeclarative language. Hooking the XAML files up to .NET code is alsoshown here, helping you inject dynamic event-driven actions into yourSilverlight UI. Finally, one technique for the dynamic creation of XAMLis shown, followed by a tour of Expression Blend.“Programming Silverlight”—By the time you gethere, you’ll be itching to start coding, and code you will as thefeature-agnostic programming constructs that make up a Silverlightapplication are covered in detail. The composition of a Silverlightapplication is laid bare and its constituent parts explained at length,as well as detailing the Silverlight application lifetime and how tohook into it. The different options for embedding the Silverlightplug-in within your application are covered, followed by a briefoverview of JavaScript and its associated DOM. This then leads onto adiscussion of the Silverlight Object Model, explaining how the visualtree is constructed to form the UI. Another technique for dynamicallycreating XAML and adding it to the visual tree is also shown here.Finally, the Silverlight event model, browser interaction, andthreading model are covered for you.“Creating the User Interface”—You now know how toprogram Silverlight and how to write XAML. This shows you how to put itall together to start laying out the user interface of your Silverlightapplication. Each of the layout controls that ship with Silverlight iscovered here—Canvas, Grid, StackPanel, and TabControl—includinginformation on when to use which one. Information on how to create ascalable UI is also provided, followed finally by a section thatdetails how to localize your application, thereby making it availableto other languages and cultures.“Silverlight Controls”—Silverlight 2 provides anassortment of controls that can be used to display and capture data. Inthis, you’ll learn to work with user input controls, items controls,and media controls and see how they can be put to use to buildinteractive and rich user interfaces. You’ll also learn how to usecontrols such as the MultiScaleImage control to work with Silverlight’s Deep Zoom technology. “Styles and Templates”—Altering the look and feelof your application is the crux here, with the different techniques forapplying styling information to the controls that comprise itdemonstrated here. As well as this, integrating with the ASP.NETProfile service via WCF is detailed, giving you the ability topersonalize your Silverlight application on a per-user basis. “User Interaction”—What’s the point of having agreat technology like Silverlight 2 if we can’t interact with it? Wereview the different ways that you can interact with your application,understanding how the UIElements work with input deviceslike the keyboard, mouse, and stylus. We also explore the differentways to navigate around the application and present the differentoptions that we have and in which scenarios each one is preferred.“Communicating with the Server”—The ability toaccess data located at distributed sources is key in many Silverlight 2applications. You learn different networking technologies that areavailable and see how they can be put to use. Several different topicsare covered such as creating and calling ASMX and WCF services, callingREST APIs, working with JavaScript Object Notation (JSON) data, pushingdata from a server to a client with sockets, and leveraging HTTPPolling Duplex functionality.“Working with Data”—It is all about data! One ofmy colleagues always says, “If you are not using data binding inSilverlight 2, you are doing something wrong!” This explains the dataframework available within your applications and then deeps dive intothe inner workings of data binding, showing you the differentapproaches that you may take. In order to understand how the data isretrieved, we explain the different technologies and techniques to getthe most of Silverlight 2 data using the available data controls.Finally, this explains how you can manipulate the data using LINQ andLINQ to XML.“Creating Custom Controls”—This will take you on ajourney in order to discover the different options that you haveavailable to customize the Silverlight 2 controls. We start exploringthe user control model that ASP.NET developers are used to, and then wedig into the internals of visual customization. You will be amazed bythis powerful new model. Finally, for those who need to push thetechnology to the limit, this explains how to create a complete customcontrol from scratch.“Securing Your Silverlight Application”—Whetheryou’re an Enterprise developer or a Silverlight hobbyist, you are goingto want to release your application out to the wild at some point. Indoing so, you are providing a high level of exposure to yourapplication, and therefore security should not be an afterthought.Thankfully, Silverlight 2 has a security framework built into the runtime, which will give you the peace of mind of working within a secureenvironment. This introduces you to the Silverlight security framework,but also talks you through your security responsibilities as aSilverlight developer.“Audio and Video”—Embedding high-fidelity audio and video in your Silverlight application is sure to capture your users’ imaginat…From the Back Cover
Professional Silverlight 2 for ASP.NET Developers
If you want to quickly and easily create visually stunning Internetapplications with rich interactivity, then this is the book for you. Itcovers the full feature set of Microsoft’s Silverlight 2, showing youhow to use it to build, debug, troubleshoot, and performance tune yourrobust applications. You’ll also learn different techniques toseamlessly augment your ASP.NET web sites with the power of thisplug-in.
You’ll first discover what Silverlight is as a technology and how itfits into the web-based landscape. The component pieces of aSilverlight application are also explained at a higher level. You’llgain a strong understanding of its features and discover how toleverage both Silverlight and ASP.NET to create compelling applications.
With this book, you’ll learn how to program in Silverlight and youcan discover all the benefits of using ASP.NET as the host. It arms youwith all the skills and knowledge you’ll need to build advancedSilverlight-based applications in record time.
What you will learn from this book
Steps for rapidly building a well-rounded applicationThe different options for embedding the Silverlight plug-inHow to create a scalable UI and localize your applicationTechniques for utilizing the different networking technologiesWays to customize the Silverlight 2 controlsTips for embedding high fidelity audio and video in your applicationHow to work within a secure environment using the built-in security frameworkAll about troubleshooting Silverlight applications to ensure performanceWho this book is for
This book is for .NET developers and architects who want to quickly get up to speed with all that Silverlight 2 has to offer.
Wrox Professional guides are planned and written by workingprogrammers to meet the real-world needs of programmers, developers,and IT professionals. Focused and relevant, they address the issuestechnology professionals face every day. They provide examples,practical solutions, and expert education in new technologies, alldesigned to help programmers do a better job.