Skip to Content

TheBlogReaders.com

Salesforce.com, PHP, MySQL, Javascript, Ajax, Htacces

Silverlight Interview Questions and Answers Part-3

Be First!

silverlight21. What is the use of ClientBin folder?
ClientBin folder is used to place the .xap file of Silverlight application. You can keep this anywhere in your web application but this is the default that is used by the Silverlight.
What is Silverlight.js file?

Silverlight.js is a helper file which enables Web sites to create advanced Silverlight installation and instantiation experiences.

22. Can we add the reference of a Class library project in Silverlight application project?
No, You can’t add the reference of a Class library inside the Silverlight application project. You can only add the reference of another Silverlight application project inside a Silverlight application project.

However, you can add the reference of a Web Service or WCF services.

23. 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:
Input events
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.

24. What is the difference between WPF and SilverLight?
SilverLight is a browser plugin for running it on web where WPF is used for window application. Though they both make use of XAML.

25 What is name of Linux version of silverlight ?
NOTE: This is objective type question, Please click question title for correct answer.

26. What is RIA?
RIA means rich internet applications.

They are web applications with rich features.

Rich features include built in AJAX support, animations, layouts, audio and video components.

Silverlight applications are examples of RIA.

27. What are the differences between WPF and SilverLight ?
Both WPF ans SilverLight are the technologies used for creating applications that have a rich user interface (i.e.: Animations, Brushes,Drawings, Layouts etc).

Both use XAML for the designing and use OOPS
SilverlIght 2 onwards supports OOPS

But a lot of differences exist between these two technologies

WPF:(Windows Presentation Foundation):

1)It is used mainly for the desktop applications,but its components can be used
in ASP.NET web sites also.
2)It can run as standalone application(.exe’s)
3)It is Windows dependant.
4)cAN be run from desktop or from the browser.
5))Can access the database directly(not in Wpf Browser applications)
6))Does not need browser plugins.
7)Use Root Tags like Window, Page,UserControl.

SilverLight:
1(Used in web site development.
2)Implemented by embedding its output in a web page using the proper components.
SilverLight applications can be execvted from a desktop using the
Out of Browser feature (SilverLight 3 onwards).
3)It is not Windows dependant. It can be implemented on Linux(MoonLight)
and the Nokis OS Symbian.
4)cAN be run from desktop or from the browser.
5)cannot access the database directly.
We have to use WCF/ Web Service.
6)Needs a browser plugin to download and execute the silverlight content in a web page.
7)Use Root Tags Like UserControl, Page.

28. What is SilverlLight RunTime?
It is basically a component that is responsible for downloading the .xap file from
the server and help the users to see the silevelight content’s olutput in a web page
.xap file is basically a file that connects the silverlight functionality with
.aspx page…xap file is used for referencing the SilverlIght resources on a .aspx
page.

29. What is App.xaml?
it is a file used in WPF/SilverLight applications.

Its settings affect the different .xaml pages.

It is used for these reasons

1) Provides a startup URI in WPF or specify the startup page in SilverLight applications

2)Define event handlers like Application_Error, Application_Startup wherever needed.

3)Define global styles inside the resources tag

4)Define properties that can then be used for data passing between .xaml pages.

30. What is the use of the ClientBin folder?
This folder is used in the ASP.NET application that will be using the Silverlight functionality. This folder contains the .xap file that contains the references of the SilverLight Libraries which will then be used in the ASP.NET application.

Location of the ClleintBin Folder
:It is below the root folder of the Web Application that is attached with the
SilveLight application

(8)

Previous
Next

Leave a Reply