NML is considered by Microsoft as the leading provider of Silverlight skills in South Africa.
We recently gave a talk at Sanlam on Silverlight. We recorded the presentation and I got Elle to create an abridged transcript of the talk [she wasn't very happy with me].
Gareth Saul - Why
Rogan Flitton - What
Debbie Derman - How
Gareth ( http://twitter.com/garethsaul )- What is Silverlight? 1/2
In order to build rich applications deployed through the browser, you have two options: Flash and Flex or Microsoft Silverlight.
Flash is on 95% of machine today - if you are predominantly concerned about portability and accessibility then use Flash.
Silverlight is on only about 35% of machines, but Microsoft is heavily pushing to increase this adoption rate and it is now part of updates to Windows machines, but it is still a niche technology - this is important if looking to build deployable internet applications.
Gareth - What is Silverlight 2/2 - Caching, DataBinding, MVC, MVVM, LinQ, Limitations, Out Of Browser.
Why should we care about Microsoft Silverlight?
What do you need to get Silverlight on a machine?
Where should you use Silverlight?
Silverlight limitations
Off-line modes are available - one of Silverlight3’s out-of-browser options key features is a network state connection feature so it knows when you are working in an online/offline mode
Rogan getting started with Silverlight (development environment)
Rogan - Silverlight Hello World and Model/View/View/Model Introduction
Rogan - Introduction to Model/View/ViewModel pattern
What do you need to set up the development environment?
Debbie (http://twitter.com/debbiederman)
Building a Silverlight UI with Blend (1/3)
Building a Silverlight UI with Blend (2/3)
Building a Silverlight UI with Blend (3/3)
Development and Design
With Blend3 and Silverlight, it is possible for the developers and designers to work simultaneously and seamlessly, as the UI and data models are completely separate elements, which can be fused together through DataBinding at any point.
In order for the designers to create the design, especially for controls, they need to have something to bind to but if the models are not yet ready, then there is nothing for them to load into the data control so there is a concept of Design Time Data.
Design Time Data
|
PROS |
CONS |
| Designers don’t need a whole development environment/setup | Incorrect binding names - runtime bugs (be very specific with your binding names) |
| Timing - development doesn’t need to have started before the designers begin | Designers may get carried away and create their own data models, which will not match up with the developer models - probably best for the developer to help the designer create some dummy data to start with |
| Conditional compilation - during production, it knows not to use the design time data | |
| Great for quick demos |
Default Basic Project Structure
App.xaml - very key element because stores application wide resources
Main.xaml
ClientBin folder to host .xap file
Default.html - contains Silverlight object (can add initParameters to pass parameters to Silverlight object)
Blend
Each style has a target type property/attribute so you can’t apply a style made for a text box to anything other than a textbox
Silverlight Resources on the Web
http://www.codeplex.com/Silverlight
http://blogs.silverlight.net/blogs/msnow/
http://weblogs.asp.net/scottgu/