By Dan Wahlin
Our overarching aim in scripting this ebook was once to provide ASP.NET builders the ability to fast and simply create visually wonderful net functions, coupled with wealthy interactivity to completely immerse the consumer in a brand new on-line event. Silverlight grants every thing you must just do this, and in critical style!
As good as taking you thru every one function that ships with Silverlight, this e-book will confirm you’re capable of debug, troubleshoot, and performance-tune your Silverlight purposes, in addition to seamlessly hook into your latest ASP.NET structure and code base.
This booklet is geared toward .NET builders and designers who are looking to quick wake up to hurry with all that Silverlight 2 has to offer.
As good as protecting the breadth of gains that Silverlight 2 offers, this e-book makes some degree of demonstrating the place worthy how the actual function 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 at once from inside Silverlight to acquire user-specific data.
It’s reasonable to assert that even supposing this booklet is aimed toward ASP.NET builders, it covers all the salient good points 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, even though, you need to try out a starting .NET ebook first, that can assist you conquer the syntax and set-up queries whilst studying a brand new language. differently, take a deep breath and dive in!
This e-book covers the complete function set of Silverlight 2, diving into all of the topic components to offer intensity and breadth assurance. in addition to instructing you in regards to the part components of the Silverlight API, the e-book additionally covers debugging, troubleshooting, and performance-tuning your Silverlight functions, arming you with the entire abilities and data you’ll have to create complicated Silverlight-based functions in checklist time.
Importantly, this ebook covers the mixing issues among ASP.NET and Silverlight, taking you thru the various suggestions you should use to seamlessly increase your latest or new ASP.NET sites with the ability of Silverlight.
If you must application in Silverlight and possibly use ASP.NET because the host, then this booklet covers it all.
The booklet is divided into distinctive elements. half I is titled “Silverlight basics for ASP.NET Developers,” and half II is titled “Developing ASP.NET functions with Silverlight.” half I is meant to provide you grounding in what Silverlight is as a expertise and the way it matches into the Web-based panorama. The part items of a Silverlight program also are laid out at a excessive point, and any wisdom required ahead of placing an software jointly is explained.
Part II is written to provide you intensity of data around the Silverlight feature-set and enable you 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 train you at a excessive point what Silverlight is and the way it may possibly assist you carry attractive, immersive net purposes. Differentiating Silverlight from different Web-based applied sciences can be lined right here, and an outline of the necessary improvement atmosphere is supplied. in brief, after studying this, you’ll have the ability to describe Silverlight and clarify why you’d are looking to use it and what offers it the sting over the competition.
“Silverlight Architecture”—Silverlight lets you swiftly construct a well-rounded software with a very good consumer interface, but when you come upon any difficulties in the course of improvement, will probably be very important that you should comprehend the underlying structure upon that you are constructing. This outlines the middle positive factors of Silverlight 2 and publications you round the development blocks of this hugely versatile framework, paying specific recognition all through for your ASP.NET heritage.
“XAML Condensed”—Quickly getting on top of things with XAML is what this can be all approximately, assisting you sweep apart the syntax queries and become familiar with the fundamentals of this multi-purpose declarative language. Hooking the XAML records as much as .NET code is usually proven right here, supporting you inject dynamic event-driven activities into your Silverlight UI. ultimately, one approach for the dynamic production of XAML is proven, through a travel of Expression Blend.
“Creating the person Interface”—You now understand how to software Silverlight and the way to put in writing XAML. This indicates you the way to place all of it jointly to begin laying out the consumer interface of your Silverlight program. all of the format controls that send with Silverlight is roofed here—
TabControl—including info on while to take advantage of which one. details on the way to create a scalable UI can be supplied, eventually through a bit that information find out how to localize your software, thereby making it on hand to different languages and cultures.
“Silverlight Controls”—Silverlight 2 presents an collection of controls that may be used to show and catch info. during this, you’ll discover ways to paintings with person enter controls, goods controls, and media controls and spot how they are often positioned to take advantage of to construct interactive and wealthy consumer interfaces. You’ll additionally how one can use controls corresponding to the
MultiScaleImage keep an eye on to paintings with Silverlight’s Deep Zoom technology.
“Styles and Templates”—Altering the appear and feel of your program is the crux the following, with the various strategies for using styling info to the controls that include it proven right here. in addition to this, integrating with the ASP.NET Profile carrier through WCF is unique, supplying you with the facility to customize your Silverlight program on a per-user basis.
“User Interaction”—What’s the purpose of getting a superb expertise like Silverlight 2 if we can’t have interaction with it? We evaluate the several ways in which you could engage together with your software, knowing how the
UIElements paintings with enter units just like the keyboard, mouse, and stylus. We additionally discover the several how you can navigate round the software and current the various suggestions that we have got and within which eventualities every one is preferred.
“Working with Data”—It is all approximately information! one in every of my colleagues regularly says, “If you're not utilizing information 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 various methods that you could be take. so that it will know the way the information is retrieved, we clarify the various applied sciences and strategies to get the main of Silverlight 2 info utilizing the on hand info 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 to be able to detect the various ideas that you've got to be had to customise the Silverlight 2 controls. we begin exploring the consumer keep an eye on version that ASP.NET builders are used to, after which we dig into the internals of visible customization. you may be surprised through this robust new version. eventually, when you have to push the expertise to the restrict, this explains how one can create a whole customized keep an eye on from scratch.
“Securing Your Silverlight Application”—Whether you’re an firm developer or a Silverlight hobbyist, you'll are looking to unencumber your software out to the wild at some point soon. In doing so, you're offering a excessive point of publicity on your software, and consequently defense shouldn't be an afterthought. fortunately, Silverlight 2 has a safety framework equipped into the run time, with a view to provide the peace of brain of operating inside of a safe surroundings. This introduces you to the Silverlight defense 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 catch your clients’ imaginations, and this exhibits you ways you are able to do simply this utilizing the Silverlight-provided
MediaElement keep watch over and the ASP.NET Media Server keep an eye on. Playback keep an eye on is tested, as is the extra complicated subject of offering synchronization issues inside your preferred media. it will certainly assist you positioned the WOW issue into your internet sites.
“Graphics and Animation”—A specific journey of the pictures API that ships with Silverlight is first mentioned the following, together with the
Shape-derived gadgets that may be rendered to reveal and in addition the
Geometry-derived gadgets that may be created after which rendered through a
Brush gadgets are lined subsequent, demonstrating the
VideoBrush, and their utilization. subsequent up is the very cool DeepZoom know-how, overlaying the construction of DeepZoom-enabled photos utilizing the DeepZoom Composer and their utilization on your Silverlight program through the
MultiScaleImage regulate. eventually, the various animation options that you should use inside of your Silverlight software are coated, starting from the elemental From/To/By variety to the extra complicated Key body varieties, together with different transition mechanisms within.
“Troubleshooting Silverlight Applications”—Writing an software from begin to end with none improvement concerns continues to be really a way off. This introduces you to more than a few ideas and instruments that can assist you in the course of the challenging occasions whilst your program isn’t behaving as you will count on it to. in addition to retrospectively solving difficulties inside of your program, this concludes with the extra proactive procedure of making sure that your software hits a identified caliber bar prior to you're happy 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 strong and versatile framework. Its inherent flexibility frequently signifies that there are a number of how you can in attaining your objectives. In picking an alternate direction, you are going to usually locate that the penalty is bad functionality. this offers a chain of best-practice recommendation to permit you to make an educated determination in the event you hit these forks within the highway. furthermore, you'll easy methods to software your code in an effort to easily determine the bottlenecks inside of your application.
To get the main out of this booklet, it’s instructed that you just code besides the examples supplied, both through copying the code proven within the chapters or through downloading the samples and operating them yourself.
To do that, you’re going to want visible Studio 2008, that is on hand 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 functions 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 must stick to the examples that use Microsoft Expression mix or the Deep Zoom Composer, you may as well obtain those from
As good as those software program necessities, you will want a uncomplicated operating improvement wisdom of Microsoft .NET and feature adventure in Web-based improvement. a keenness for developing wealthy net purposes is constructive, even though no longer necessary!