Thursday, March 10, 2011

Application_Exit event - App.xaml (Silverlight)

Before the Silverlight application exit, you can confirm whether the user really wants to exit or not.

Wednesday, March 9, 2011

Read and Display RSS Feeds - Silverlight

The Handbook of Loan Syndications and TradingThe SyndicationFeed class in Silverlight makes it easy to parse the feed response. The process of reading a feed is as simple as reading a RSS feed using the WebClient class, loading the stream into the SyndicationFeed class and binding it to the Silverlight UI.

To use the SyndicationFeed class you need to add reference to System.ServiceModel.Syndication

The steps are as follows,

Tuesday, March 8, 2011

Implicit Styling - Silverlight 4


Styling in Silverlight is similar to styling in HTML with CSS. It helps you keep your markup (HTML, XAML) code clean by putting all the properties into a separate file. At runtime, both the markup and the styles defined in the external style sheet are merged and give the look to the application as it was intended.

WPF 4 UnleashedStyling was already available in Silverlight. However, up until Silverlight 4, not all of the functions had been implemented (as compared to WPF). The most striking one was the default or implicit styling. Assume you are creating a Silverlight application and all controls of a specific type, for example all Buttons throughout the application should have a particular font size, font weight etc. In previous versions of Silverlight, we had to create a style and apply this style on every instance of the Button. There was no way to tell Silverlight that a particular style was supposed to be the style that had to be applied on all controls of a certain type.

Monday, March 7, 2011

Star Sizing in Grid Layout - Silverlight

Silverlight® 4: Problem - Design - Solution
In Silverlight, you have choice of using one of the following containers to create a layout for your application or control
  • Canvas
  • Grid
  • StackPanel
Most of us end up with Grid as container for all controls, unless you are developing applications that require precise placement of controls based on exact position co-ordinates or your creating come kind of animation. Therefore it is important that you understand how Grid layout works.

Tuesday, March 1, 2011

Microsoft's - Tag

Today, I came across a new concept or technology (I don't know what to call it technology or concept? ) from Microsoft - TAG. It is really cool. Read on to learn more about Microsoft Tag.

Microsoft Tag is a new kind of bar code that connects almost anything in the real world to information, entertainment, and interactive experiences on your mobile phone. Tags are free to create and use. You can add them to your ads, posters, product packages, display it on your website, billboards, clothing etc the list is endless. When you scan a Tag using the free Tag Reader application on your mobile phone, it will automatically open a webpage, add a contact to your address book, display a message, or dial a number – there are no long URLs to type or SMS messages to send, isn't it cool?