Tuesday, March 24, 2009

Network Status Detection API in SilverLight 3.0

In .NET Framework 2.0 we are able to detect the network status using  System.Net.NetworkInformation API. Now we can use this same feature in Silverlight 3.0

The Namespace  System.Net.NetworkInformation has the class name called  NetworkChange  this class has one event called  NetworkAddressChanged  using this even we are able to detect network status . Now i am going to write small Silverlight App which will show how to use NetworkChange   and NetworkAddressChanged.   event.

Again you can write simple application to demonstrate but i wanted to use some of the other new features of SilverLight 3.0  like  Effects , Projection 

In my blog i put lot of pictures because  One Picture == 1000 words ( so that we can C# ( see sharp)).

image

Here is the XAML UI code and  Code behind Logic .

image

image

image

 

image

 

Nandri

SreenivasaRagavan,

No comments: