Silverlight 2.0 is Go!
Version 2.0 is the long awaited release that lets you create Rich Internet Applications in C# (and several other languages including Iron Python, IronRuby, Managed JScript and VB.NET ) that runs in a browser, not just in Internet Explorer but Firefox, and Safari. Silverlight includes support for HTTP over TCP which means that you can connect to WCF, SOAP, or ASP.NET AJAX services and receive XML, JSON, or RSS data.
Installation is a small download and then you are away. It's similar to Flash with the big difference that developing for Silverlight is a lot easier than for Flash. You create controls in XAML, an XML based declarative language that looks like this:
<Button Height="25" Width="100" Grid.Column="0" Grid.Row="0" Click="Button_Click"/>
Then you write code in a code-behind file (just as in ASP.NET) like this
<Rectangle x:Name="rect1" Fill="Red" Width="150" Height="100" Grid.Column="1" Grid.Row="1"/>
private void Button_Click(object sender, RoutedEventArgs e)
and that's a red square and button. Click the button and the square turns blue. Where it becomes more Flash like is that you can create animations, audio, and video. Also, a DataGrid and Listbox can be bound to a database and display data. WPF Controls that come as standard in Silverlight include Button, Calendar, CheckBox, DataGrid, DatePicker, HyperlinkButton, ListBox, RadioButton, and
ScrollViewer.
{
rect1.Fill = new SolidColorBrush(Colors.Blue) ;
}
This is a major step forward in developing applications for interacting with the web but I think at least one influential group will not be so happy with it. Not Adobe as you'd expect (Silverlight is a competitor to Flash/Flex) but W3C (the Web organization) because viewing the source of websites will become much harder.
- Link to C# Tutorials


No comments yet. Leave a Comment