page 1 of 1
Comments: 4 | Views: 578

Hi.

Iam new to silverlight and just want to know how its works .

Please explain me the silverlight life cycle and how the request and response are handled through silverlight.

Does it have master page and content page kind of support..

figuerres
figuerres
???

Silverlight programming is more like using WPF or WIndows Forms.

the web browser sends your code to the client and that code is running on the client's desktop OS with a local copy of the Silverlight Runtime.

 

so like a desktop app you can have classes that can hang around for the whole time the app is running.

you can create "root level" properties in your app class if you need to have a global variable.

you can add properties to UserControls to pass data also.

 

the app can use a set of controls / classes that are found in the silverlight toolkit - that you download seperately

 

the toolkit includes a "Navigation framework"  that treats UserCOntrols as child forms that are loaded into the main form's content area.

 

this is in some ways like a master page but in other ways is very different.

 

the bottom line is the Navigation control makes it easy to structure the app into logical pages and not have to re-load the browser page all the time.

 

you call WCF services or ASMX serives for your data connection to the server

OR

if you need a more special data service you can create a TCP socket service and call that.

 

think of this as "Flash for .Net" in many ways.

 

like flash  developers use the flash IDE to create animations you can use Expression Blend to create SToryboards to create animation effects to make things look really good.

 

you can do animation form code also but Blend can let you see the animation and adjust it w/o writing any code.

 

you should go to www.silverlight.net and check out the getting started page and the boards there also there is a link on the getting started to a sample / walkthru by scott gu

also look at RIA services - still in pre-beta but they are IMHO a great addon to make building apps even simpler and more powerfull.

there is a kind of long video for them that show you a small demo app using them.

right now RIA is hard to get hosted as it is still not done, but on a local deveopment box you can run it and get started.

they should be final by the end of the year when VS 2010 releases from what i have been reading.

 

hope that helps.

stevo_
stevo_
Human after all

When you deploy a vanilla silverlight app, you deploy a .xap file, which is what visual studio will create for you as part of the publishing proccess.

 

The xap file is a zip file, it contains an xml manifest, the assemblies that were referenced at build time, and potentially other resources which were marked to be embeded in the package (such as images, sound files etc).

figuerres
figuerres
???

also i recall - check to be sure i have this right though.

 

that it will cache the file it downloads so that if the server version does not chamge they do not have to re-download again.

also assemblies and other files can be downloaded on the fly by the app and they also will be cashed locally the same way, i think they use the IE browser cache when it's IE but not sure it it always that or a silverlight internal ones.

page 1 of 1
Comments: 4 | Views: 578
Microsoft Communities