SilverLight interview questions experienced/SilverLight Interview Questions and Answers for Freshers & Experienced

What are differences between Visibility.Collapsed and Visibility.Hidden in WPF?

Visibility.Hidden hides the control, but reserves the space it occupies in the layout. So it renders whitespace instead of the control.
Visibilty.Collapsed does not render the control and does not reserve the whitespace. The space the control would take is 'collapsed', hence the name.

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 utility assignment. You can simplest upload the reference of every other Silverlight software venture internal a Silverlight software task.

What Is The Difference Between Wpf And Silverlight?

Silverlight makes use of a specific implementation of a XAML parser, with that parser being a part of the Silverlight core set up. In some instances, the parsing conduct differs from the parsing conduct in Windows Presentation Foundation (WPF), which additionally has a selected implementation.

How Can You Change The Startup Page Of Silevrlight Application?

Open the App.Xaml.Cs file
In the Application_Startup event handler, set the RootVisual assets to the instance of the precise SilverlIght classinstance: if we have a file called MainPage.Xaml, a class known as MainPage might be there in MainPage.Xaml.Cs.Non-public void Application_Startup(object sender, StartupEventArgs e)this.RootVisual = new MainPage();

What Is Silverlight Run Time?

Silver mild run time is a plug-in for browsers to guide silver-light enabled programs. If silver mild run time isn't installed, browsers will no longer be capable of run silver mild elements in the browser. We can setup the silver light tags any such way that your browser will routinely prompts the user to down load and installation the silver light plug-in whilst your utility is released in the browser.

Can We Add The Reference Of Class Library Project In Silver Light Application Project?

No, we will’t upload the reference of sophistication library in the silver light application project. We can most effective upload the reference of any other silver mild software challenge within the silver light utility challenge.However, we will upload the reference of Web Service or WCF Service.

What Is The Use Of Client Bin Folder?

Client Bin folder is used to area the .Xap report of silver light utility. We can preserve this everywhere in our internet application however that is the default that is utilized by silver mild.

How To Change The Default Page Of Silver Light Application?

To alternate the default page of silver light utility, you want to set the Root Visual assets in the Application_Startup occasion of App.Xaml report.Example:
private void Application_Startup(item sender,StartupEventArgs e)

this.RootVisual = new YourPage();

How To Change The Default Page Of Silver Light Application?

To alternate the default page of silver light utility, you want to set the Root Visual assets in the Application_Startup occasion of App.Xaml report.Example:
private void Application_Startup(item sender,StartupEventArgs e)

this.RootVisual = new YourPage();

Can You Provide A List Of Layout Management Panels And When You Will Use Them?

Canvas Panel: Use the canvas for simple layouts and while there is no need to re-size panel. Controls can overlap every other while resizing the panel.Stack Panel: Use this for grouping controls in a stack (horizontal/vertical). Controls do no longer overlap.Grid Panel: Most flexible, multi rows/columns layouts. Similar to a HTML desk.

What Are The Steps Will Followed When Consuming Wcf In Silver Light?

4 simple steps to consume WCF service the use of Silver mildCreate the WCF carrier
Enable Cross Domain on your WCF service
Add the WCF provider reference
Call the Service

What Is Isolated Storage?

Silver light makes use of remoted garage as a virtual report system to store statistics in a hidden folder in your gadget. It breaks up the facts into separate sections:Section #1 consists of the executive statistics which include disk quotaSection #2 contains the real information.Each silver mild software is allocated its personal portion of the garage with the present day quota set to be 1 MB in step with utility.

How Can Be The Default Page Settings Changed For A Silverlight Page ?

You can trade the default web page settings of a silverlight web page.This can be done by putting the RootVisual belongings inside the Application_Startup event of the App.Xaml report.This is accomplished as follows:Private void Application_StartUp(item sender, StartupEventArgs e) this.RootVisual = new MainPage();

Give The Reasons How Ajax Is Better Than A Java Applet?

As we know that, the programs with Ajax runs quicker while compared to Java applet.
This is because, Java applets load big sized libraries.
But in Ajax, code resides on the web server in which, best the required occasion inside the user interface is published again to the server.

Give An Example Of Creating Button In Xaml ?

In XAML, a button may be created as inside the following example:Example:<Grid x:Name="LayoutRoot" Background="White"><Button Width="60" Height="30">Click Here</Button></Grid>

What Is .Xap File In Context Of Silverlight?

The .Xap document is a compressed output file for the Silverlight application. This file includes AppManifest.Xaml, compiled output meeting of the Silverlight challenge (.Dll) and different resource files referred by way of the Silverlight application.

What Browsers And Platforms Are Supported By Silverlight Version 2?

Silverlight version 2 helps all popular browsers like Internet Explorer,Firefox,Safari on Both Mac OS and windows OS.

What Is Easing Functions In Silverlight?

Easing functions is utilized in Silverlight to utilise custom mathematical formulation to animations. For example,if we need an object to oscillate we may want to use we will use a corresponding mathmetical function to as it should be depict this motion.

What Happens If We Press F5 In Visual Studio To Run A Silverlight Application?

The following occurs if we press F5 in Visual Studio to run a Silverlight Application.

A)A new folder is created in internet site assignment.(It occurs handiest first time)
b)The name of the folder is Clientbin.
C)The folder includes the packages with .Xap extension.

What Types Of Security Measures Are Provided With Silverlight?

Silverlight is Microsoft primarily based era and it provide you with a few safety capabilities, to make it cozy to use and put in force. For relaxed communique its programs uses WCF services and makes use of WCF protection functions. SSL (Secure Socket Layer) can be used for protection mechanism to give the transport layer security.

Does Silverlight Application Supports Desktop Implementation?

Yes, Silverlight supports computer implementation. Newer version of Silverlight affords out-of-browser facility, with the aid of using this option it may be bodily deployed on the neighborhood device. Silverlight four.Zero supports OOB facility that enhances the conversation with different packages like Word, Excel and so on. And with the nearby database like MS Access and so forth.

Where Is The Silverlight Application Present?

Silverlight application resides at the host computer wherein the ASP.NET is mounted. It is living in the ASP.NET webpage, but it can be hosted on different HTML pages too, by using the usage of the extension .Xap. Silverlight application is made available to the browser when a user makes a HTTP request to ASP.NET page.

What Are The Controls Provided In Silverlight For Line-of-business (lob) Applications?

Silverlight affords masses of packages for Line-of-Business (LOB) to have higher communication some of the factors and also to enrich the houses of the utility. The controls which are being furnished via the Silverlight are as follows:Data Grid: The representation of statistics in a grid shapeData Form: Representation of data in a form Chart controls: Representation of records in chart paperwork and has extra capability to show the controls for personalization.

What Is The Relationship Between Silver Light, Wpf And Xaml?

Silverlight is used to read and render the user interface (UI) factors. XAML is a XML report that defines the consumer interface factors. This file is being study by using the WPF framework. Microsoft developed WPF framework after which extended it to WPF/e, which helped the application to render user interface in the browser. Silverlight is being officially launched by using Microsoft.

Explain Silverlight Architecture?

Silverlight is a plugin that is provided by way of the Microsoft. Silverlight architecture consists of the functionality from core .NET framework, Ajax and having a number of its very own functionality which includes animation, media etc. The structure includes 4 blocks:.NET framework components: WPF is .NET framework, utilized in Silverlight. Presentation center: center presentation framework includes the display alternatives including photos, vector animations and many others.Other technology: Ajax and JavaScript technology are used to have interaction with Silverlight framework.Hosting: Silver-mild animations run underneath the browser surroundings and it also gives masses of other application hosting packages.

What Type Of Applications Can Be Developed Using Silverlight?

Silverlight is a plug-in, which may be used to increase net based or mobile primarily based programs. Silverlight is utilized in the ones packages wherein you need to symbolize the graphics or the output must be in graphical layout. Silverlight may be utilized in various forms of Line-of-Business programs consisting of: Healthcare, Insurance, Logistics etc. One of the coolest instance of its software is healthcare utility.

What Are The Restrictions Of Web Service Accessing In Silverlight?

Silverlight affords and helps plenty of features however there are some regulations as well, including WS-Security and WS-Addressing are not supported. When operating with the languages such as ASMX/JAVA/PHP, you want to look which you have SOAP 1.1 and WS-I Basic Profile 1.Zero. Silverlight best guide GET and POST movements, others aren't supported. It doesn’t have complete http features also.

What Is The Real Advantage Of Using Excel/phrase Files Or Local Database In Silverlight?

The actual benefit of using Excel or World files or any local database in Silverlight is that it offers smooth to manipulate capabilities for shop and fetching the data, which can be often used by the packages. It doesn’t rely an awful lot on WCF offerings to provide the properties for data communique. The statistics is automatically fetched and stored in excel or phrase sheets for future references.

What Are The Advantages Of Extensible Application Markup Language (xaml) Over C# Or Vb.Net?

XAML is the language that is used with Silverlight. It is one of the growing languages that has masses of capabilities and residences. The advantages of it over C# or VB.NET are that:C# or VB.NET provide improvement by the usage of coding while, XAML presents codeless improvement and presents lots of features to create complex consumer interface controls and so on. It also can define an instance of class that is being already defined by using C# or VB.NET.

What is the usage of ClientBin folder?

The ClientBin folder is used in ASP.NET application to use the Silverlight functionalities. The ClientBin folder contains the .xap file that contains the reference of the Silverlight libraries which is later used in ASP.NET applications.

How can you check the internet connection status in Silverlight?

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");
}

Is it possible to pass parameters to Silverlight controls from ASP.NET pages?

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.

What is Deep Zoom in Silverlight?

Deep Zoom is one of the functions of Silverlight which is used to zoom in and zoom out of the application.

How can you see a Silverlight application in full-screen mode?

The Silverlight application can be shown in full screen mode by using the following command:

Application.Current.Host.Content.IsFullScreen = true;

How can you change the startup page of Silverlight application?

First open the App.xaml.cs file

In the Application_Startup event handler, set the RootVisual property to the instance of the particular Silverlight class.

For example:

If you have a file name known as MainPage.xaml, a class called MainPage will be there in MainPage.xaml.cs.

What is the .xap file inside ClientBin folder of consuming Silverlight application?

Following is a very good FAQ about the .xap posted on asp.net page.

Quote:What does XAP mean?
XAP (pronounced ZAP) is the file extension for a Silverlight-based application package (.xap). This file contains the compressed assemblies and resources of a Silverlight 2 application.

What is Silverlight.js file?

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

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.

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.

What is Storyboard?

Storyboard is a Silverlight class with controls animations with a timeline, and provides object and property targeting information for its child animations
Given XAML below
Code:
<Canvas>
<Ellipse x:Name=”ellipseTest” Height=”20″ Width=”20″ Canvas.Left=”0″ Canvas.Top=”10″ />
</Canvas>

What are the new features of Silverlight 4?

• Support for Google's Chrome browser.

• Web cam and microphone support.

• Printing support.

• Full keyboard access while running in full-screen mode.

• Programmatic access to a user's local document folder.

• Improved mouse support, including right button support and mouse wheel support.

• Elevated trust and support for local Component Object Model (COM) objects.

• New notification support to display messages to end users.

When to use Silverlight, ASP.NET, or both?

This depends on different scenarios. Below are some common approaches:

• Pure Silverlight One approach is to completely remove ASP.NET. This solution works best if you’re working on a new development. You only need to work on Silverlight, without any worry about integration problems. If you need to communicate with the server, you write Web Services, such as WCF. It will also help you when you need to port part or whole of your system to another hosting or even another platform, since the client and the server are completely separate.

• Major ASP.NET, plus a Silverlight island This approach is generally used when the Silverlight content and the ASP.NET content have little relationship. For example, an ASP.NET blog engine with a Silverlight media player in a blog post. This approach is very easy to implement, and allows you to reach the broadest audience. For example, if a user hasn’t installed Silverlight, he can still read the blog posts, but he can’t watch the videos.

What is the relationship and difference between Silverlight and ASP.NET?

Technically, Silverlight and ASP.NET are completely different. The major differences are listed below:

• Silverlight runs completely on the client, while ASP.NET mainly runs on the server, but also has a few parts running on the client.

• When an event fires, Silverlight handles the event on the client, but in ASP.NET, the browser will make an HTTP POST to the server, and after the server handles the request, it sends a new HTML page to the client.

• A Silverlight application sends rendering commands to the Silverlight rendering engine by either writing XAML or code, and the Silverlight rendering engine will handle the rendering task. On the other hand, ASP.NET doesn’t have a rendering engine. It generates an HTML file on the server, sends it to the client, and allows the browser to parse the HTML file and render the content.

• Silverlight can’t work with a database directly; instead, it consumes data from Web Services, while ASP.NET has strong support for working with databases directly. The most important thing to note is what runs on the client and what runs on the server, since this will affect almost every part of your system. Silverlight runs on the client, and ASP.NET runs on the server. They can work together and are compatible with each other, but this requires some time and effort.

How does Silverlight make the Microsoft development system better?

Silverlight is a cross-browser, cross-platform plug-in for delivering the next generation of media experiences and rich interactive applications (RIAs) for the Web. Examples include:

• For ASP.NET-based Web applications, Silverlight provides a rich UI front-end that, with a consistent programming model, adds support for richer interactivity, media, and audio.

• For Microsoft SharePoint–based content, Silverlight offers the ability to create rich Web Parts.

• For Windows Live services, Silverlight offers the ability to consume services and APIs more effectively.

Will I need more memory, a faster processor, or a better Graphics Processing Unit (GPU)?

Microsoft designed Silverlight with the ability to deliver high-fidelity experiences on the broadest set of system configurations. Some features, such as HD video, may benefit from the power contained in newer personal computers.

Search
R4R Team
R4R provides SilverLight Freshers questions and answers (SilverLight Interview Questions and Answers) .The questions on R4R.in website is done by expert team! Mock Tests and Practice Papers for prepare yourself.. Mock Tests, Practice Papers,SilverLight interview questions experienced,SilverLight Freshers & Experienced Interview Questions and Answers,SilverLight Objetive choice questions and answers,SilverLight Multiple choice questions and answers,SilverLight objective, SilverLight questions , SilverLight answers,SilverLight MCQs questions and answers Java, C ,C++, ASP, ASP.net C# ,Struts ,Questions & Answer, Struts2, Ajax, Hibernate, Swing ,JSP , Servlet, J2EE ,Core Java ,Stping, VC++, HTML, DHTML, JAVASCRIPT, VB ,CSS, interview ,questions, and answers, for,experienced, and fresher R4r provides Python,General knowledge(GK),Computer,PHP,SQL,Java,JSP,Android,CSS,Hibernate,Servlets,Spring etc Interview tips for Freshers and Experienced for SilverLight fresher interview questions ,SilverLight Experienced interview questions,SilverLight fresher interview questions and answers ,SilverLight Experienced interview questions and answers,tricky SilverLight queries for interview pdf,complex SilverLight for practice with answers,SilverLight for practice with answers You can search job and get offer latters by studing r4r.in .learn in easy ways .