By Dan Wahlin
Our overarching aim in penning this ebook used to be to provide ASP.NET builders the ability to quick and simply create visually lovely web purposes, coupled with wealthy interactivity to totally immerse the person in a brand new on-line event. Silverlight delivers every little thing you want to do exactly this, and in critical style!
As good as taking you thru each one characteristic that ships with Silverlight, this e-book will be sure you’re in a position to debug, troubleshoot, and performance-tune your Silverlight functions, in addition to seamlessly hook into your current ASP.NET structure and code base.
This ebook is aimed toward .NET builders and designers who are looking to speedy wake up to hurry with all that Silverlight 2 has to offer.
As good as masking the breadth of positive aspects that Silverlight 2 offers, this publication makes some extent of demonstrating the place worthy how the actual characteristic should be built-in tightly with the ASP.NET host program. An instance is in bankruptcy 7, the place the ASP.NET Profile provider is applied without delay from inside of Silverlight to acquire user-specific data.
It’s reasonable to assert that even though this booklet is geared toward ASP.NET builders, it covers all the salient positive factors of Silverlight 2 to the measure that it’s an invaluable programming source for builders no longer utilizing ASP.NET also.
If you’re clean to .NET improvement, besides the fact that, you'll want to try out a starting .NET e-book first, that can assist you conquer the syntax and set-up queries whilst studying a brand new language. in a different way, take a deep breath and dive in!
This e-book covers the whole function set of Silverlight 2, diving into all of the topic components to offer intensity and breadth assurance. in addition to instructing you concerning the part components of the Silverlight API, the booklet additionally covers debugging, troubleshooting, and performance-tuning your Silverlight purposes, arming you with all of the abilities and information you’ll have to create complex Silverlight-based functions in list time.
Importantly, this ebook covers the mixing issues among ASP.NET and Silverlight, taking you thru different innovations you should use to seamlessly increase your present or new ASP.NET sites with the ability of Silverlight.
If you need to software in Silverlight and very likely use ASP.NET because the host, then this publication covers it all.
The publication is divided into detailed elements. half I is titled “Silverlight basics for ASP.NET Developers,” and half II is titled “Developing ASP.NET purposes with Silverlight.” half I is meant to provide you grounding in what Silverlight is as a expertise and the way it suits into the Web-based panorama. The part items of a Silverlight program also are laid out at a excessive point, and any wisdom required earlier than placing an program jointly is explained.
Part II is written to offer you intensity of information around the Silverlight feature-set and provide help to leverage the ability of either Silverlight and ASP.NET to create compelling applications.
A short synopsis of the content material follows:
“Silverlight in a Nutshell”—This will educate you at a excessive point what Silverlight is and the way it may assist you convey attractive, immersive net purposes. Differentiating Silverlight from different Web-based applied sciences can be lined the following, and an outline of the mandatory improvement setting is supplied. briefly, after examining this, you’ll be capable to describe Silverlight and clarify why you’d are looking to use it and what supplies it the sting over the competition.
“Silverlight Architecture”—Silverlight permits you to swiftly construct a well-rounded software with a good consumer interface, but when you come across any difficulties in the course of improvement, it will likely be vital so you might comprehend the underlying structure upon that you are constructing. This outlines the center beneficial properties of Silverlight 2 and publications you round the construction blocks of this hugely versatile framework, paying specific awareness all through in your ASP.NET heritage.
“XAML Condensed”—Quickly getting on top of things with XAML is what this is often all approximately, aiding you sweep apart the syntax queries and familiarize yourself with the fundamentals of this multi-purpose declarative language. Hooking the XAML records as much as .NET code is usually proven right here, assisting you inject dynamic event-driven activities into your Silverlight UI. ultimately, one process for the dynamic construction of XAML is proven, by way of a travel of Expression Blend.
“Creating the person Interface”—You now know the way to software Silverlight and the way to write down XAML. This exhibits you the way to place all of it jointly to begin laying out the person interface of your Silverlight software. all the format controls that send with Silverlight is roofed here—
TabControl—including info on while to exploit which one. info on the best way to create a scalable UI is additionally supplied, ultimately via a bit that information how one can localize your software, thereby making it to be had to different languages and cultures.
“Silverlight Controls”—Silverlight 2 offers an collection of controls that may be used to exhibit and catch info. during this, you’ll discover ways to paintings with person enter controls, goods controls, and media controls and notice how they are often placed to take advantage of to construct interactive and wealthy consumer interfaces. You’ll additionally easy methods to use controls akin to the
MultiScaleImage regulate to paintings with Silverlight’s Deep Zoom technology.
“Styles and Templates”—Altering the appear and feel of your program is the crux right here, with different concepts for utilising styling details to the controls that contain it confirmed the following. in addition to this, integrating with the ASP.NET Profile provider through WCF is particular, providing you with the power to customize your Silverlight software on a per-user basis.
“User Interaction”—What’s the purpose of getting an excellent expertise like Silverlight 2 if we can’t have interaction with it? We evaluate different ways in which you could engage along with your program, figuring out how the
UIElements paintings with enter units just like the keyboard, mouse, and stylus. We additionally discover the various how one can navigate round the software and current the several ideas that we've got and during which situations every one is preferred.
“Working with Data”—It is all approximately info! one among my colleagues continuously says, “If you're not utilizing facts binding in Silverlight 2, you're doing anything wrong!” This explains the knowledge framework to be had inside of your functions after which deeps dive into the interior workings of knowledge binding, exhibiting you the several techniques that you could be take. on the way to know the way the knowledge is retrieved, we clarify the various applied sciences and methods to get the main of Silverlight 2 facts utilizing the on hand facts controls. eventually, this explains how one can manage the knowledge utilizing LINQ and LINQ to XML.
“Creating customized Controls”—This will take you on a trip so one can become aware of the various innovations that you've got on hand to customise the Silverlight 2 controls. we begin exploring the person keep an eye on version that ASP.NET builders are used to, after which we dig into the internals of visible customization. you can be surprised through this strong new version. eventually, when you have to push the know-how to the restrict, this explains the right way to create an entire customized keep watch over from scratch.
“Securing Your Silverlight Application”—Whether you’re an firm developer or a Silverlight hobbyist, you'll are looking to unencumber your program out to the wild at some point soon. In doing so, you're delivering a excessive point of publicity for your program, and for that reason safety shouldn't be an afterthought. fortunately, Silverlight 2 has a safety framework outfitted into the run time, with a purpose to provide the peace of brain of operating inside of a safe setting. This introduces you to the Silverlight safety framework, but in addition talks you thru your protection tasks as a Silverlight developer.
“Audio and Video”—Embedding high-fidelity audio and video on your Silverlight program is certain to trap your clients’ imaginations, and this exhibits you the way you are able to do simply this utilizing the Silverlight-provided
MediaElement keep an eye on and the ASP.NET Media Server regulate. Playback regulate is established, as is the extra complicated subject of supplying synchronization issues inside your selected media. this can certainly assist you positioned the WOW issue into your internet sites.
“Graphics and Animation”—A distinct journey of the images API that ships with Silverlight is first mentioned right here, together with the
Shape-derived items that may be rendered to reveal and likewise the
Geometry-derived gadgets that may be created after which rendered through a
Brush items are lined subsequent, demonstrating the
VideoBrush, and their utilization. subsequent up is the very cool DeepZoom know-how, masking the production of DeepZoom-enabled photos utilizing the DeepZoom Composer and their utilization on your Silverlight program through the
MultiScaleImage keep watch over. ultimately, the various animation innovations that you should use inside your Silverlight software are coated, starting from the elemental From/To/By kind to the extra complex Key body varieties, together with the several transition mechanisms within.
“Troubleshooting Silverlight Applications”—Writing an software from begin to end with none improvement matters continues to be rather a way off. This introduces you to quite a number concepts and instruments that will help you during the challenging instances while your program isn’t behaving as you are going to count on it to. along with retrospectively solving difficulties inside of your program, this concludes with the extra proactive procedure of making sure that your program hits a identified caliber bar prior to you're chuffed that it truly is able to be published. Silverlight’s checking out framework is the flavour of the day here.
“Performance”—Silverlight is a really robust and versatile framework. Its inherent flexibility usually signifies that there are numerous how one can in attaining your ambitions. In identifying another direction, you are going to frequently locate that the penalty is negative functionality. this offers a sequence of best-practice suggestion to permit you to make an educated choice in case you hit these forks within the street. moreover, you'll device your code with a view to easily determine the bottlenecks inside of your application.
To get the main out of this ebook, it’s instructed that you just code in addition to the examples supplied, both through copying the code proven within the chapters or by means of downloading the samples and operating them yourself.
To do that, you’re going to wish visible Studio 2008, that is to be had to obtain from MSDN, supplied you've a subscription. in addition to this, you’ll additionally have to obtain and set up the Silverlight instruments for visible Studio 2008, which lets you create Silverlight-based purposes inside visible Studio. This set up also will look after fitting the Silverlight run time and SDK for you. you could obtain this installer from
If you need to persist with the examples that use Microsoft Expression mix or the Deep Zoom Composer, it's also possible to obtain those from
As good as those software program specifications, you will want a uncomplicated operating improvement wisdom of Microsoft .NET and feature event in Web-based improvement. a fondness for developing wealthy internet functions is beneficial, even though now not necessary!