Saturday, July 25, 2009

Experiments with SilverLight 2.0 - Part I

Que: Why?
Ans: The goal of Silverlight is to bring the same fidelity and quality found in the user interfaces(UIs) associated with desktop applications to Web applications, allowing Web developers and designers to build applications for their clients’ specific needs. It is designed to bridge the technology gap between designers and developers by giving them a common format in which to work. This format will be rendered by the browser and will be based on XML, making it easy to template and to generate automatically. The format is XAML—Extensible Application Markup Language.

Que: Installing Silverlight?
Ans: Here

Que: How does it work?
Ans:


Que: How to relate a silverlight app with some web application?
Ans: Its taken care by the .xap file. I can talk more about it, later.
Refer Here.


Que: can we dynamically create a silverlight control?
Ans: Yes.

function handleLoad(control, userContext, sender){
var xamlFragment = "[textblock top='60' text='A new TextBlock'][/textblock]"
var textBlock = control.content.createFromXaml(xamlFragment);
sender.children.add(textBlock);

Que: How can i use Asp.net Ajax to fetch data for silverlight control?Ans:
* Using direct webservice call from js.
* Using WebClient and WebResponse.
* Using WCF.

Que: Silverlight and WCF?
Ans: Refer WCF.

Que: How to work with Windows Communication Foundation?
Ans: Refer Msdn


Que: Can i we use silverlight contro on a normal html page?
Ans: Yes. It is just a plugin ( [object] tag).

Que: how to debug xaml files? can i use breakpoints?

No comments:

Post a Comment