Silverlight Interview Questions and Answers
Question - 61 : - How can you check the internet connection status in Silverlight?
Answer - 61 : -
You can check the internet connection status by using the following code:
If (NetworkInterface.GetIsNetworkAvailable())
{
Messagebox.Show("Network available");
}
else
{
Message.box.Show("Network not available");
}
Question - 62 : - Is it possible to pass parameters to Silverlight controls from ASP.NET pages?
Answer - 62 : -
Yes. It is possible to pass parameters from your aspx pages and HTML pages to the Silverlight controls by setting InitParameters.
The XAML page user control has a property known as InitParameters. From your ASPX pages, you can set a value in the form of key value pairs. Since this property accepts key-value pairs, you can pass any set of string values.
Question - 63 : - What is Deep Zoom in Silverlight?
Answer - 63 : -
Deep Zoom is one of the functions of Silverlight which is used to zoom in and zoom out of the application.
Question - 64 : - Which types of video files can be supported in Silverlight?
Answer - 64 : -
Many types of video files can be supported in Silverlight. It can support MP3, Window Media Audio Format (wma, wmv 7-9) and VC-1 formats.
Question - 65 : - How can you see a Silverlight application in full-screen mode?
Answer - 65 : -
The Silverlight application can be shown in full screen mode by using the following command:
Application.Current.Host.Content.IsFullScreen = true;
Question - 66 : - What is isolated storage in Silverlight?
Answer - 66 : -
Isolated storage is a virtual file storage system in Silverlight which is used to store data in a hidden folder on your system. It stores the data in a two separate sections:
- Section1: It contains the administrative information like disk quota.
- Section2: It contains the actual data.
Each Silverlight application is allocated its own portion of the storage with the current quota set to be 1 MB per application.
Question - 67 : - What do you know by Silverlight runtime?
Answer - 67 : -
Silverlight runtime is basically a component which is responsible for downloading the .xap file from the server and facilitates users to see the silverlight content's output in the webpage.
Question - 68 : - What is the name of Linux version of Silverlight?
Answer - 68 : -
The Linux version of Linux is known as Moonlight.
Question - 69 : - How would you perform event handling in Silverlight?
Answer - 69 : -
We can perform event handling in Silverlight 1.0 by using JavaScript while Silverlight 2.0 uses C# (managed code) for event handling.
Question - 70 : - What is the difference between WPF (Windows Presentation Foundation) and Microsoft Silverlight?
Answer - 70 : -
All the features of Silverlight are incorporated in WPF. So you can say that Silverlight is the subset of WPF.
Silverlight is just like Adobe flash and is designed for developing rich browser based internet applications while WPF is used for developing enhanced graphics applications for desktop platform.