Google News
logo
Silverlight Interview Questions
Microsoft Silverlight is a powerful tool for creating and delivering rich Internet applications and media experiences on the Web. Silverlight 5 builds on the foundation of Silverlight 4 for building business applications and premium media experiences. Silverlight 5 introduces more than 40 new features, including dramatic video quality and performance improvements as well as features that improve developer productivity.
Silverlight is an open – source development tool manufactured by Microsoft, which is essentially used to create and deploy interactive user experiences along with media and internet applications for various internet and mobile applications.
XAML language is used to design the layout of Silverlight. XAML stands for Extensible Application Markup Language. It is a declarative XML-based language created by Microsoft.
To run Silverlight applications in a web browser, you need to have the Silverlight runtime installed on the client browser as a plug-in. This is a light-weight version of the .NET runtime.
 
However, to develop a Silverlight application, you need something more.
 
Silverlight SDK : This includes a set of tools required to compile and build Silverlight controls.
 
If you are comfortable writing HTML using Notepad and compiling .NET applications from console tools, then you just need the Silverlight SDK to develop Silverlight applications.
 
However, most people use some kind of IDE to develop applications faster.
 
Microsoft offers two separate tools to develop Silverlight applications :
 
• Microsoft Expression Studio - This tool is meant for web designers to create rich visual elements for Silverlight applications. Expression Studio is recommended for web designers who create rich internet applications with enhanced visual content and graphics. There are several features provided for creating enhanced graphics elements, with lot of options to pick color, font, etc. 
 
• Microsoft Visual Studio - This is the integrated development environment from Microsoft to develop .NET applications. Programmers can use Visual Studio to develop Silverlight applications which require programming. Visual Studio allows programmers to develop sophisticated Silverlight applications in any .NET language (like C#, VB.NET etc). 
 
Here are some other tools that you can use :
 
• Install Deep Zoom Composer - This tool allows you to prepare your images for use with the Deep Zoom feature in Silverlight 3. 
 
• Download Silverlight Toolkit - This toolkit is a Microsoft project containing Silverlight controls, components, and utilities that can be downloaded and used in your Silverlight applications. It includes full source code, samples, and tests. 
 
• Download .NET RIA Services - Microsoft .NET RIA Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms. RIA Services provides a pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes, and custom operations. 
No, Silverlight project doesn't support normal ADO.NET objects like DataTable, DataSet, DataColumn, Database connection providers like SqlConnection, OledbConnection objects.
 
You can use System.Data namespace but that contains Services related stuffs not ADO.NET stuffs.
Styles elements are supported in the form of application resources. An app.xaml file can be created containing an application resource Xml construct. The target type for each style is set to the control on which the style needs to be applied.

App.xaml :
<Application.Resource>
<Style x:Key="MyBorder" TargetType="Border">
<setter property="width" value="5">
</style>​


Page.xaml :
<Border Style="{StaticResource MyBorder}">
...
</Border>​
RIA is an acronym stands for Rich Internet Applications. These are web application with rich features. These features include built in AJAX support, layouts, animations, audio, and video components.
The four different components used in Silverlight :
 
* Silverlight Plug-in

* Silverlight Host, the Web Page

* Silverlight Application File (.XAP)

* The Interface language, XAML
There are several files that are required to be used in silverlight to make it function properly and to include the properties of applications together :
 
AppManifest.XAML : It consist the list of all the entry points including the class and assembly. This file can be taken and hosted in any HTML file using an object tag.
 
The code will be given as :
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2"   
width="100%" height="100%"><param name="source"   
value="MySilverLightControl.xap"/></object> ​
 
Silverlight.js and CreateSilverlight.js : contains the initialization of the Silverlight plug-in that will be used in HTML pages.
The architecture of Silverlight is made of three components :
 
Core presentation framework : This framework includes the components like data binding, vector graphics, text, animation, images for presenting various features.

.NET framework for Silverlight : It includes the libraries and components like XLINQ, XML serialization, Syndication, base class libraries, networking and common language runtime.

Updater and Installer : It is a control for installation and provides automatic updates.