Scott Guthrie: Building a Silverlight 2 application
- Posted: Oct 15, 2008 at 10:49 AM
- 68,112 Views
- 11 Comments
Download
How do I download the videos?
- To download, right click the file type you would like and pick “Save target as…” or “Save link as…”
Why should I download videos from Channel9?
- It's an easy way to save the videos you like locally.
- You can save the videos in order to watch them offline.
- If all you want is to hear the audio, you can download the MP3!
Which version should I choose?
- If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
- If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
- If you have a Zune, WP7, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
- If you just want to hear the audio of the video, choose the MP3 file.
Right click “Save as…”
- High Quality WMV (PC, Xbox, MCE)
- MP3 (Audio only)
- MP4 (iPod, Zune HD)
- Mid Quality WMV (Lo-band, Mobile)
- WMV (WMV Video)
Note: Due to the screen resolution, we recommend you watch this in full screen mode or download the video.
Now that Silverlight 2 has released to the Web, we sat down with Scott Guthrie as he walks us through handcoding a basic Silverlight 2 application.
You'll see the Silverlight eventing model, controls and control databinding, how to reuse classes and C# 3.0 features, and how to call WCF Web services directly from Silveright.
For more information, visit www.silverlight.net
Now that Silverlight 2 has released to the Web, we sat down with Scott Guthrie as he walks us through handcoding a basic Silverlight 2 application.
You'll see the Silverlight eventing model, controls and control databinding, how to reuse classes and C# 3.0 features, and how to call WCF Web services directly from Silveright.
For more information, visit www.silverlight.net
Comments Closed
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
One point of confusion for me is the Silverlight.js file: I am not using it and the beta 2 silverlight project I created didn't include it, but when I created a released silverlight 2 project, Visual Studio created this file and referenced it in the test html page it generated. Should I add this file as-is to my server files and include the reference to it in my html page?
Edit: I asked the above question on the silverlight.net forum and got an answer for it (in no time flat!).
Great job Microsoft team! Developing my game in silverlight was an excellent experience.
Hope this helps,
Scott
One request though - can you please make a 64-bit Silverlight viewer? I don't like having to switch over to 32-bit IE7/8 when I come across a site that uses Flash or Silverlight.
I wish Silverlight could have been announced with a blog post and video for the community rather then the Microsoft PR Press release -Microsoft Releases Silverlight 2 on the 13th then Silverlight 2 Released on the 14th and now the video follows on the 15th
-- no I am wrong .... that does show an rc1 version.... but it is released 10/13 so it is the most current release.
so it is the one to use with the RTW bits of Silverlight and VS 08 SP1.
got some questions though,
now that thr dlr and iron ruby/python is released (right?) how do you use it with regular apps? im pretty sure you can but i whould love to see some info on that
also, is silverlight really a compatible subset of wpf now? can i take my silverliht xaml and plop it into a desktop app and it will just work? how much stuff do i have to modify?
how about data/event triggers? i heard somewhere that silverlight didnt support all the trigger stuff that wpf supported, whats the difference there?
last one
Silverlight is in some ways a "compatible subset" of WPF, but in other ways it is not. You will most likely have to modify your XAML and backing code if they are of any complexity. The way you setup and run animations are different, data templates differ, many functions and properties available in WPF classes are not available in the corresponding Silverlight classes, etc.
I ported my Silverlight app (a game) to WPF and it took about 3 hours of fiddling. Going the other way (WPF to Silverlight) can be much more difficult because you may be using a feature of WPF that has no direct Silverlight equivalent and have to do a workaround.
I don't know the specifics about differences in triggers and the visual state manager availability. It would be great for Microsoft to publish a comprehensive diff of WPF classes/functions/properties and Silverlight. Right now the only way I know is to search MSDN for the WPF class then do the same with the Silverlight version and compare what is available, or use intellisense in the code!
I see that existing controls are in the 100's KB large, which isn't bad if you had a fast internet connection, but could be annoying to users when their apps just freeze for a few seconds.
Is there a way to tie into Silverlight assembly loading events so that we give prompts / progress reporting on assembly downloading?
Or can Silverlight do this automatcally for devs?
P.S.
I hate .Net 2.0 new async pattern. I much prefer the BeginCalling(MyCallback);
Because you're doing the same thing w/
proxy.Callback += MyCallback;
proxy.MakeAsyncCall
If you do MakeAsyncCall again somewhere else, you have to be cognizant of what's in Callback now. I much prefer to provide explicitly a callback for each async call.
P.P.S.
Thank you! Finally, automatic UI thread sync!
P.P.P.S.
Speaking of blogging... One of the Silverlight evangelists I follow is Tim Sneath. He did announce SL2, but the post prior to that one was a full month ago. What's up w/ that?
Remove this comment
Remove this thread
close