In your Silverlight application, you might want to detect whether network connection is available and then based on the result, you might want to do a service call or disable few buttons. This is a most wanted feature by the Silverlight developers.
So if you are looking for code, this post will help you to understand the APIs and integrate the same in your Silverlight applications.