SilverLight interview questions and answers 2

SilverLight Faqs 2
What is the difference between WPF and Silverlight?
Silverlight uses a particular implementation of a XAML parser, with that parser being part of the Silverlight core install. In some cases, the parsing behavior differs from the parsing behavior in Windows Presentation Foundation (WPF), which also has a particular implementation
What is Silverlight Tool Kit?
To create an application or game you need to design, code and give some extra feature to your output.
To do the above, you need some controls, IDE etc.
Silverlight Tool kit is nothing but is a collection of Silverlight Tools, Components etc. It includes source code describing the all you need to develop an application.
Can I add more than one .xaml pages in silverlight application?
Yes, you can have multiple .xaml files in a single project.
In the App.xaml, in the method Application_Startup you can choose, which page you want to
initially display.
How does Silverlight 2 differ from Adobe Flash?
As I am from .Net background so in my views you can get C# / Vb.net compiled code but in Flash there is only action script.
You can find difference in depth at : http://silverlight.net/forums/t/3015.aspx
What happened when I press F5 within Visual Studio to run Silverlight application?
When you run the Silverlight application within Visual Studio, a new folder created in the web-site project for silverlight solution and it happened only first time. The folder name is ClientBin and having package with XAP extension which contains compiled project.
Can you elaborate how to start a silverlight application with Visual Studio?
You can find a fully described article from http://www.silverlightclub.com/resources/1858-silverlight-lets-start-building-applications.aspx.aspx
In the following step(s) I am giving the ideas all about:
1.Create a project:Here you just start your visual studio, Select your programming language [C#/VB], Choose Silverligh Template give the name and save it
2. Adding SIlverlight COntrols:One thing is happened here, controls cannot dragged onto the designer, you can draw/drag the controls on XAML page.
(a) Naming to control:In this step just give the name to your silverligt control like for Button you can give name as : btnmySilverligtButton
(b)Adding event handlers to Silverlight controls:Here you can give the event handlers like for click etc.
(c)Testing Silverlight applications in Visual Studio:Now just press F5 and test your application
What is the best place to start Silverlight application?
There is no hard and fast rule to start Silverlight application. Every developer
can start as per his/her experience.
like as per my case I always prefer Visual Studio. SO, in my view Visual Studio is the best place to start with Silverlight2 applications.Microsoft provides
templates for creating Silverlight applications and libraries in C#
and Visual Basic

No comments: