Silverlight Top 8 Frequently Asked Questions

Q. What is Silverlight Tool Kit?

Ans: 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.

Please visit this link for more info:http://www.codeplex.com/Silverlight

Q. Can I add more than one .xaml pages in silverlight application?

Ans: 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.

Q. How can I create image pieces/sub image?

Ans: In straight way you can”t create a subimage from an existing image. Here you just clip an image, Clipping is just different from Cropping. In clipping, first you have to dictate which part of the images to draw and later you have to remove all but the desired part of the image. Silverlight does not support cropping.

Q. How does Silverlight 2 differ from Adobe Flash?

Ans: 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

Q. How can I switch to Expression Blend from Visual Studio?

Ans: Expression blend provide great extensibility for XAML files.To switch to Expression Blend, right-click on the XAML file and select Open in Expression Blend.

Q. What happened when I press F5 within Visual Studio to run Silverlight application?

Ans: 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.

Q. Can you elaborate how to start a silverlight application with Visual Studio?

Ans : 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

Q. What is the best place to start Silverlight application?

Ans: 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.

Leave A Reply