Silverlight Interview Questions and Answers (65) - Page 3

Explain about Deep Zoom Composer in silverlight ?

The Deep Zoom feature in silverlight is performed by using deep zoom composer. For Panning and Seamless zooming, this composer will help us by creating high resolution images.
RIA means...

The full form of RIA is Rich Internet Applications.
These applications comprises of animations,layouts,video and audio capability and also Ajax support.
It is a library of client and server components which runs on the top of ADO .NET Data Services.
Differences between WPF and Silverlight..

The main difference between both is that,
Silverlight is used mostly to develop rich web based applications, whereas WPF is used for desktop based applications.
WPF was introduced in .NET 3.0 framework.
Silverlight cannot support the advanced features of Windows Operating System, whereas WPF supports Windows OS such as 3D, Hardware acceleration, and full document support.
What is the role of a .xap file in silverlight ?

A .xap file is nothing but a compiled silverlight application.
It contains all the necessary required files for the silverlight runtime to run the application.
It is a kind of zipped file.
It contains an application manifest file (AppManifest.xaml), and all the required DLLs which are required by the application to run.
An important point to note is that the .dll file has the same name as that of the application.
Explain about ClientBin folder..

The .xap file is kept in this ClientBin folder.
The ClientBin folder acts as the default storage location for the .xap fie, though this .xap file can be kept anywhere.
What are the languages that are used to create silverlight based applications ?

The languages which can be used to create a silverlight application are XAML,C#,VB.NET.
The XAML language is used to create shapes,controls, and texts as it is a declarative language.
Also XAML is XML based and hence it has to follow XML rules.
What are the controls that comes with silverlight ?

The controls that comes with silverlight are of 3 types. They are:
i) Canvas: This control will allow the positioning of the child elements according to the X,Y space.
ii) Grid: This control will allow the child elements positioning in rows or columns.
iii) Stack Panel: This control will llow the child elements positioning as vertically or horizontally.
How style works with Silverlight?

Style is collection of property value that apply to an element. First define the style in

App.xaml.

<Application.Resource>
<Style x:key="MyButton" TargetType="Button">
<Setter Property="FontFamily" Value="Verdana" />
<Setter Property="FontSize" Value="36" />
</Style>
</Application.Resource>

Apply style to Button.
<Button Style="{StaticResource MyButton}" Content="My Button" ></Button>
What is .xap file?

A .xap file is a created when Silverlight project is built. It includes AppManifest.xaml, assembly of Silverlight project and resource files referred by Silverlight application.
What is Silverlight SDK?

Silverlight SDK contains samples, documentations, libraries and tools for developing Silverlight application.
Silverlight SDK is not necessary for creating Silverlight application but its makes development easy.
Expression Studio orVisual Studio, which one better to use for developing Silverlight application?

Expression Studio and Visual Studio both are used for creating Silverlight application.If Silverlight application has graphics and visual elements then its good to work with Expression Studio. If Silverlight application has programming coding then its good to use Visual Studio.
For Windows,what are system requirement for Silverlight?

Operating System - Windows 7, Windows Vista, Windows XP SP2.
Processor - Intel Platinum III
RAM - 128MB
Which platforms support Silverlight?

1. Windows XP Service Pack 2
2. Windows 2000
3. Windows Vista
4. Windows Server 2003
5. Mac OS
6. Linux Moonlight
Which browsers support Silverlight?

1. Internet Explorer 6,7,8
2. Mozilla Firefox 2,3
3. Safari 3,4
4. Google Chrome
What are deep zoom and deep zoom composer?

Deep zoom composer is tool in Silverlight which make image with deep zoom feature. Actually Deep zoom is feature in Silverlight which zoom in and out of images rapidly without affecting the performance of application.
Its Deep zoom composer which creates high resolution composition for image for smooth zooming.
Difference between Silverlight 3 and Silverlight 4?

There are a lot of new features in Silverlight 4 that are not present in Silverlight 3 :-
1. Print Support
2. WebCam / Microphone Support
3. Mouse right click event handling
4. RichTextArea Control
5. Multicast network support
6. Silverlight hosting in HTML 4
7. Google Chrome support
What are differences between Silverlight and Asp.Net?

1. Silverlight runs on client's system whereas Asp.Net runs on the server.

2. When an event fires, Silverlight handles the event on the client whereas in Asp.Net, the browser will make an Http Post to the server.

3. Silverlight can't work directly with database, it consumes data from web service whereas Asp.Net supports working with database.
Diffrence between Silverlight and WPF?

1. Silverlight is used for developing RIA for web application whereas WPF is using for windows applications.

2. Silverlight supports cross-browser, cross-platform whereas WPF supports windos only.

3. Silverlight is add-on machnism for most of the browsers but it is necessary to run Silverlight plug-in once on client's system. But with WPF, it is necessary to install WPF client application on client's system.

4. Silverlight is small subset of .NET framework to optimized its size. WPF has full access to main .NET framework and its assemblies.
What are the system requirements for Silverlight?

The system requirements for Microsoft Silverlight and associated technologies are listed below.
Windows
• Operating System: Windows 7, Windows Vista, Windows XP Service Pack 2
• Intel® Pentium® III 450MHz or faster processor (or equivalent)
• 128MB of RAM
Mac OS
• Operating System: Apple Mac OS X 10.4.8 or above
• Intel Core™ Duo 1.83GHz or faster processor
• 128MB of RAM
Linux
• Moonlight
How to perform Event handling in silver light?

Silverlight 1.0 uses JavaScript, while Silverlight 2.0 uses C# (managed code) for event handling. We will be describing the event model for Silverlight 2.0.

The event handlers are defined in the code-behind file that backs the XAML definition of your User Interface (UI), namely mypage.xaml.cs.

The Silverlight Event Mode

In Silverlight, there are two event cases:

1)Input events
2)Non-input events.

Input Events: The browser that hosts the Silverlight plug-in handles initial input stimulus for the input events. This is because Silverlight works within the plug-in architecture of the hosting browser. From the browser, the event is sent to the Silverlight plug-in.

Then, it is raised as an event in the Silverlight Object Model.

Non-input Events: They report a state change to a particular object, for example, the state change events that report asynchronous download state or progress of actions initiated by Web Client. Some non-input events provide lifetime information of objects at a framework level.

For example the FrameworkElement.Loaded event


Some events, such as OnError, can only be handled by the Silverlight plug-in instance and exist within the HTML Document Object Model (DOM). These events need to be continually exposed and possibly handled by any script working with the plug-in instance in the DOM. Therefore; these events are not passed to the managed programming model.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories