Friday, May 16, 2008

Silverligh2.0 - Tip 2

Hi Friends,


Back to back tips from my end.

I hope you all are able to understand the basics of Silverlight2.0. Soon going to publish lot of video tutorials in my personal site http://www.fmass.in/. May be within another two weeks. Especially about Silverlight,LINQ,WCF and SQL Integeration.

When you bind data to a controls property you need to declare that property="{binding }"

Example :

&ltTextBlock Text="{binding Textvaluefromdb}">


Cheers -:)
Muthaiah Thiagarajan.

Silverlight2.0 - Tip 1



Hi Friends,

When you create a web application as i discussed in the previous post. Then you can open the page.xaml page in .net itself and now you have also design interface of xaml codes in silverlight 2.0.

So now you get very good intellisense in .net for xaml codes, thanks to Microsoft. Still the design panel needs to update and should have complete look and feel of the page. I hope they bring soon as a beta tool for VS2008. Anyways as per experts speech in MIX '08. It has been tld that this design interface will get good shape before the release of Visual Studio 2010.

Now coming the tip :

In silverlight 2.0 , since you have a intellisense for all controls, like CSS for html. Silverlight2.0 provides App.xaml page.

So you can set the style in App.xaml and just like you css through id or class on html page, here you can call that style in the Page.xaml for that particular control.

You need to put all styles under





Now you can call this in the Page.xaml for all Hyperlinkimage control by adding a property to the control i.e) Style="HyperlinkImage"


Cheers -:)
Muthaiah Thaigarajan

Silverlight2.0 - Concept 1

Hi Friends,

I am coming up with new uploads in my personal site soon. Expect Soon -:)

Now a fact about Silverlight2.0 Technology:

In new Silverlight 2.0 , after installing Silverlight Beta tools for Visual Studio 2008 Professional.

When u open a new project with Silverlight and backend as C#/VB.It asks whether u want to have a website or web application. Web application is preferrable. Here it creates one silverlight project and one asp web application project under one Solution. We get two pages one Page.xaml and another App.xaml under silverlight web application and also you get a seperate project under the same solution for aspx pages.

Here in this Microsoft has brought a excellent concept of making a .xap file when you built the entire application/website , this file falls in the clientbin folder of aspx project. So this xap file will serve the cause of Silverlight project inside the aspx project.

Here inside the aspx project other than default.aspx, we get another two test pages one in aspx format and another in html format. You can built the entire solution and view the silverlight on browser through either of the test pages. But if you any data binding , you can one view those in aspx test page.

To learn more click here.

Cheers -:)
Muthaiah Thiagarjan.