<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
    <channel>
        <title>Imran Shaik</title>
        <link>http://geekswithblogs.net/Silverlight2/Default.aspx</link>
        <description>Silverlight 2.0 Quintessential Rambling </description>
        <language>en-GB</language>
        <copyright>Imran Shaik</copyright>
        <managingEditor>iashaik@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <image><link>http://creativecommons.org/licenses/by-nc-sa/2.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image>
        <geo:lat>0</geo:lat><geo:long>0</geo:long><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/</creativeCommons:license><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/imranshaik" type="application/rss+xml" /><feedburner:emailServiceId>1634619</feedburner:emailServiceId><feedburner:feedburnerHostname>http://www.feedburner.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.rojo.com/add-subscription?resource=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://blog.rojo.com/RojoWideRed.gif">Subscribe with Rojo</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/imranshaik" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://my.feedlounge.com/external/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://static.feedlounge.com/buttons/subscribe_0.gif">Subscribe with FeedLounge</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://www.yourminis.com/subscribe.aspx?u=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://www.yourminis.com/images/addtoyourminisbadge.gif">Subscribe with Yourminis.com</feedburner:feedFlare><feedburner:feedFlare href="http://download.attensa.com/app/get_attensa.html?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://www.attensa.com/blogs/attensa/WindowsLiveWriter/BadgeredintoBadges_10C02/attensa_feed_button5.gif">Subscribe with Attensa for Outlook</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://hub.netomat.net/account/account.autoSubscribe.jspa?urls=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://www.netomat.net/blogger/images/icon_netomat_feedbutton.gif">Subscribe with netomat Hub</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.flurry.com/pushRssFeed.do?r=fb&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://www.flurry.com/images/flurry_rss_logo2.gif">Subscribe with Flurry</feedburner:feedFlare><feedburner:feedFlare href="https://intouch.particls.com/download/?mode=2&amp;feed=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="https://intouch.particls.com/resources/buttons/it-button2.gif">Subscribe with Particls</feedburner:feedFlare><feedburner:feedFlare href="http://www.addtoany.com/?linkname=Imran%20Shaik&amp;linkurl=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik&amp;type=feed" src="http://www.addtoany.com/addfr-b.gif">Add to Any Feed Reader</feedburner:feedFlare><feedburner:feedFlare href="http://www.fwicki.com/users/default.aspx?addfeed=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="http://www.fwicki.com/images/ui/fwicki_clicklet.png">Subscribe with fwicki</feedburner:feedFlare><feedburner:feedFlare href="zune://subscribe/?Imran%20Shaik=http%3A%2F%2Ffeeds.feedburner.com%2Fimranshaik" src="https://www.feedburner.com/fb/images/partners/sslchicklets/zune.gif">Subscribe with Zune Marketplace</feedburner:feedFlare><item>
            <title>XML Literals and Embedded Expressions</title>
            <category>Silverlight</category>
            <category>WPF</category>
            <link>http://feeds.feedburner.com/~r/imranshaik/~3/260579142/xml-literals-and-embedded-expressions.aspx</link>
            <description>&lt;p&gt;In our &lt;a href="http://geekswithblogs.net/Silverlight2/archive/2008/03/25/silverlight-2-beta-1---web-services-in-quotnew-schoolquot.aspx"&gt;previous tutorial&lt;/a&gt; we have seen how we can use XML axis properties to consume XML returned from a web service in Silverlight applications, in this example however we will look at how XML Literals and Embedded Expressions can be used to easily write fast and efficient Web Services. &lt;/p&gt;  &lt;p&gt;*Note XML Literals and Embedded Expression are Visual Basic 9 Exclusive features you might need Visual Studio 2008 and .NET Framework 3.5 installed. &lt;/p&gt;  &lt;p&gt;XML Literals and Embedded Expression are not limited to Silverlight/WPF you can use it where ever you want as long as you are using Visual Basic 9 with Visual Studio 2008. &lt;/p&gt;  &lt;h2&gt;XML Literals &lt;/h2&gt;  &lt;p&gt;So, what is XML Literals? XML literals is a nice and clean way to write XML in Visual Basic, to use XML Literals "option infer" should be set "on", before we look at XML Literals, a little about literals, what are literals, for any VB.NET programmer the following code should be very familiar. &lt;/p&gt;  &lt;pre class="code"&gt;&lt;span style="color: blue"&gt;Dim &lt;/span&gt;Product = &lt;span style="color: #a31515"&gt;"Visual Basic"
&lt;/span&gt;&lt;span style="color: blue"&gt;Dim &lt;/span&gt;Version = 9
&lt;span style="color: blue"&gt;Dim &lt;/span&gt;SubVersion = 9.0
&lt;span style="color: blue"&gt;Dim &lt;/span&gt;ThisTime = #3/30/2008 3:02:00 PM#
&lt;span style="color: blue"&gt;Dim &lt;/span&gt;Tomarrow = #3/31/2008#&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;

&lt;p&gt;Here, I am not declaring the type of the variable, but literals allow VB to understand that Product is a string,  version is integer, subversion is double, Thistime is DataTime and Tomarrow is Date, the values that I have provided are called literals, now it should be easy to understand when I say VB 9 supports XML Literals. So instead of using quotes and escape quotes to construct XML we can simple use XML literals and just start writing XML, the following is absolutely legitimate. &lt;/p&gt;

&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;Dim &lt;/span&gt;Products = _
&lt;span style="color: #6464b9"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #844646"&gt;VisualStudio &lt;/span&gt;&lt;span style="color: #b96464"&gt;Version&lt;/span&gt;&lt;span style="color: #6464b9"&gt;=&lt;/span&gt;&lt;span style="color: #555555"&gt;"&lt;/span&gt;&lt;span style="color: #6464b9"&gt;2008&lt;/span&gt;&lt;span style="color: #555555"&gt;"&lt;/span&gt;&lt;span style="color: #6464b9"&gt;&amp;gt;
    &amp;lt;&lt;/span&gt;&lt;span style="color: #844646"&gt;Products&lt;/span&gt;&lt;span style="color: #6464b9"&gt;&amp;gt;
        &amp;lt;&lt;/span&gt;&lt;span style="color: #844646"&gt;Language &lt;/span&gt;&lt;span style="color: #b96464"&gt;Name&lt;/span&gt;&lt;span style="color: #6464b9"&gt;=&lt;/span&gt;&lt;span style="color: #555555"&gt;"&lt;/span&gt;&lt;span style="color: #6464b9"&gt;Visual Basic&lt;/span&gt;&lt;span style="color: #555555"&gt;" &lt;/span&gt;&lt;span style="color: #b96464"&gt;Version&lt;/span&gt;&lt;span style="color: #6464b9"&gt;=&lt;/span&gt;&lt;span style="color: #555555"&gt;"&lt;/span&gt;&lt;span style="color: #6464b9"&gt;9&lt;/span&gt;&lt;span style="color: #555555"&gt;"&lt;/span&gt;&lt;span style="color: #6464b9"&gt;/&amp;gt;
        &amp;lt;&lt;/span&gt;&lt;span style="color: #844646"&gt;Language &lt;/span&gt;&lt;span style="color: #b96464"&gt;Name&lt;/span&gt;&lt;span style="color: #6464b9"&gt;=&lt;/span&gt;&lt;span style="color: #555555"&gt;"&lt;/span&gt;&lt;span style="color: #6464b9"&gt;C#&lt;/span&gt;&lt;span style="color: #555555"&gt;" &lt;/span&gt;&lt;span style="color: #b96464"&gt;Version&lt;/span&gt;&lt;span style="color: #6464b9"&gt;=&lt;/span&gt;&lt;span style="color: #555555"&gt;"&lt;/span&gt;&lt;span style="color: #6464b9"&gt;3&lt;/span&gt;&lt;span style="color: #555555"&gt;"&lt;/span&gt;&lt;span style="color: #6464b9"&gt;/&amp;gt;
    &amp;lt;/&lt;/span&gt;&lt;span style="color: #844646"&gt;Products&lt;/span&gt;&lt;span style="color: #6464b9"&gt;&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: #844646"&gt;VisualStudio&lt;/span&gt;&lt;span style="color: #6464b9"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;Yes, no more escape quote to construct XML, just start writing it there and then. &lt;/p&gt;

&lt;h2&gt;Embedded Expressions &lt;/h2&gt;

&lt;p&gt;Now, you might argue that we don't use XML inside the programs, we just need a clean way to manipulate XML not define them in our programs, but I never said we are finished with it, there is more. &lt;/p&gt;

&lt;p&gt;In our previous example we used XDocuments/XElement/XAttribute to write XML in our web service, which can also be used to write XML in C#&lt;/p&gt;

&lt;p&gt;This is what we had,&lt;/p&gt;

&lt;pre class="code"&gt;&amp;lt;WebMethod()&amp;gt; _
   &lt;span style="color: blue"&gt;Public Function &lt;/span&gt;AllCountries() &lt;span style="color: blue"&gt;As String

       Dim &lt;/span&gt;sud &lt;span style="color: blue"&gt;As New &lt;/span&gt;CountryDataSetTableAdapters.CountryTableTableAdapter

       &lt;span style="color: blue"&gt;Dim &lt;/span&gt;XDataSet &lt;span style="color: blue"&gt;As New &lt;/span&gt;CountryDataSet.CountryTableDataTable

       sud.Fill(XDataSet)

       &lt;span style="color: blue"&gt;Dim &lt;/span&gt;MyNameSpace &lt;span style="color: blue"&gt;As &lt;/span&gt;XNamespace = &lt;span style="color: #a31515"&gt;"http://tempuri.org/Schema/Countries/"

       &lt;/span&gt;&lt;span style="color: blue"&gt;Dim &lt;/span&gt;XDoc &lt;span style="color: blue"&gt;As &lt;/span&gt;XDocument = &lt;span style="color: blue"&gt;New &lt;/span&gt;XDocument(&lt;span style="color: blue"&gt;New &lt;/span&gt;XDeclaration(&lt;span style="color: #a31515"&gt;"1.0"&lt;/span&gt;, &lt;span style="color: #a31515"&gt;"utf-8"&lt;/span&gt;, &lt;span style="color: #a31515"&gt;"yes"&lt;/span&gt;), _
                                             &lt;span style="color: blue"&gt;New &lt;/span&gt;XElement(MyNameSpace + &lt;span style="color: #a31515"&gt;"Countries"&lt;/span&gt;, _
                                                       &lt;span style="color: blue"&gt;From &lt;/span&gt;country &lt;span style="color: blue"&gt;In &lt;/span&gt;XDataSet _
                                                       &lt;span style="color: blue"&gt;Select New &lt;/span&gt;XElement(&lt;span style="color: #a31515"&gt;"Country"&lt;/span&gt;, _
                                                                            &lt;span style="color: blue"&gt;New &lt;/span&gt;XAttribute(&lt;span style="color: #a31515"&gt;"Code"&lt;/span&gt;, country.CountryISO), _
                                                                           &lt;span style="color: blue"&gt;New &lt;/span&gt;XAttribute(&lt;span style="color: #a31515"&gt;"Name"&lt;/span&gt;, country.CountryName))))

       &lt;span style="color: blue"&gt;Return &lt;/span&gt;XDoc.ToString
   &lt;span style="color: blue"&gt;End Function&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;But with Embedded Expressions and XML Literals we can make it even easier to write XML, but first what is embedded expressions, we have seen what XML literals is before and it is not very practical because we don't use XML in our program, but embedded expressions extend the user of XML Literals, embedded expressions are used to embedded values where required using &amp;lt;%= %&amp;gt; syntax. &lt;/p&gt;

&lt;p&gt;So the previous WebMethod can be re-written using XML Literals and Embedded Expressions, but first let us find out what we are trying to write, this is the format of the XML we want to construct. &lt;/p&gt;

&lt;pre class="code"&gt;&lt;span style="color: #6464b9"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #844646"&gt;Countries &lt;/span&gt;&lt;span style="color: #b96464"&gt;xmlns&lt;/span&gt;&lt;span style="color: #6464b9"&gt;=&lt;/span&gt;&lt;span style="color: #555555"&gt;"&lt;/span&gt;&lt;span style="color: #6464b9"&gt;http://tempuri.org/Schema/Countries&lt;/span&gt;&lt;span style="color: #555555"&gt;"&lt;/span&gt;&lt;span style="color: #6464b9"&gt;&amp;gt;
    &amp;lt;&lt;/span&gt;&lt;span style="color: #844646"&gt;Country &lt;/span&gt;&lt;span style="color: #b96464"&gt;Code&lt;/span&gt;&lt;span style="color: #6464b9"&gt;=&lt;/span&gt;&lt;span style="color: #555555"&gt;"" &lt;/span&gt;&lt;span style="color: #b96464"&gt;Name&lt;/span&gt;&lt;span style="color: #6464b9"&gt;=&lt;/span&gt;&lt;span style="color: #555555"&gt;""&lt;/span&gt;&lt;span style="color: #6464b9"&gt;/&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: #844646"&gt;Countries&lt;/span&gt;&lt;span style="color: #6464b9"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;

&lt;p&gt;So we can replace our previous Web Service using XML Literals and embedded expression using something like, &lt;/p&gt;

&lt;pre class="code"&gt;    &amp;lt;WebMethod()&amp;gt; _
    &lt;span style="color: blue"&gt;Public Function &lt;/span&gt;AllCountriesUsingXMLLiterals() &lt;span style="color: blue"&gt;As String

        Dim &lt;/span&gt;sud &lt;span style="color: blue"&gt;As New &lt;/span&gt;CountryDataSetTableAdapters.CountryTableTableAdapter

        &lt;span style="color: blue"&gt;Dim &lt;/span&gt;XDataSet &lt;span style="color: blue"&gt;As New &lt;/span&gt;CountryDataSet.CountryTableDataTable

        sud.Fill(XDataSet)

        &lt;span style="color: blue"&gt;Dim &lt;/span&gt;XDoc = _
            &lt;span style="color: #6464b9"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #844646"&gt;Countries &lt;/span&gt;&lt;span style="color: #b96464"&gt;xmlns&lt;/span&gt;&lt;span style="color: #6464b9"&gt;=&lt;/span&gt;&lt;span style="color: #555555"&gt;"&lt;/span&gt;&lt;span style="color: #6464b9"&gt;http://tempuri.org/Schema/Countries&lt;/span&gt;&lt;span style="color: #555555"&gt;"&lt;/span&gt;&lt;span style="color: #6464b9"&gt;&amp;gt;
                &lt;/span&gt;&lt;span style="background: #fffebf; color: #555555"&gt;&amp;lt;%=&lt;/span&gt; &lt;span style="color: blue"&gt;From &lt;/span&gt;country &lt;span style="color: blue"&gt;In &lt;/span&gt;XDataSet &lt;span style="color: blue"&gt;Select &lt;/span&gt;&lt;span style="color: #6464b9"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #844646"&gt;Country &lt;/span&gt;&lt;span style="color: #b96464"&gt;Code&lt;/span&gt;&lt;span style="color: #6464b9"&gt;=&lt;/span&gt;&lt;span style="background: #fffebf; color: #555555"&gt;&amp;lt;%=&lt;/span&gt; country.CountryISO &lt;span style="background: #fffebf; color: #555555"&gt;%&amp;gt;&lt;/span&gt; &lt;span style="color: #b96464"&gt;Name&lt;/span&gt;&lt;span style="color: #6464b9"&gt;=&lt;/span&gt;&lt;span style="background: #fffebf; color: #555555"&gt;&amp;lt;%=&lt;/span&gt; country.CountryName &lt;span style="background: #fffebf; color: #555555"&gt;%&amp;gt;&lt;/span&gt;&lt;span style="color: #6464b9"&gt;/&amp;gt; &lt;/span&gt;&lt;span style="background: #fffebf; color: #555555"&gt;%&amp;gt;
&lt;/span&gt;            &lt;span style="color: #6464b9"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #844646"&gt;Countries&lt;/span&gt;&lt;span style="color: #6464b9"&gt;&amp;gt;

        &lt;/span&gt;&lt;span style="color: blue"&gt;Return &lt;/span&gt;XDoc.ToString
    &lt;span style="color: blue"&gt;End Function&lt;/span&gt;&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;

&lt;p&gt;Thats it! Working with XML have never been so easy, and it can't get easier than this. Enjoy the good features of VB 9. More examples coming soon. &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120859"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120859" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/Silverlight2/aggbug/120859.aspx" width="1" height="1" /&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=sXWM2eF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=sXWM2eF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=JLYiIEF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=JLYiIEF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=hzfSIqf"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=hzfSIqf" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/imranshaik/~4/260579142" height="1" width="1"/&gt;</description>
            <dc:creator>Imran Shaik</dc:creator>
            <guid isPermaLink="false">http://geekswithblogs.net/Silverlight2/archive/2008/03/30/xml-literals-and-embedded-expressions.aspx</guid>
            <pubDate>Sun, 30 Mar 2008 05:45:52 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Silverlight2/comments/120859.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Silverlight2/archive/2008/03/30/xml-literals-and-embedded-expressions.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/Silverlight2/comments/commentRss/120859.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/Silverlight2/services/trackbacks/120859.aspx</trackback:ping>
        <feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=imranshaik&amp;itemurl=http%3A%2F%2Fgeekswithblogs.net%2FSilverlight2%2Farchive%2F2008%2F03%2F30%2Fxml-literals-and-embedded-expressions.aspx</feedburner:awareness><feedburner:origLink>http://geekswithblogs.net/Silverlight2/archive/2008/03/30/xml-literals-and-embedded-expressions.aspx</feedburner:origLink></item>
        <item>
            <title>Silverlight 2 Beta 1 - Web Services in &amp;quot;New School&amp;quot; approach.</title>
            <category>Silverlight</category>
            <link>http://feeds.feedburner.com/~r/imranshaik/~3/257451554/silverlight-2-beta-1---web-services-in-quotnew-schoolquot.aspx</link>
            <description>&lt;p&gt;There might be a few samples of working with web services in Silverlight but I promise I'll keep you interested with VB.NET exclusive feature VB Literals. This is going to open a whole new way of looking and working with XML and Web Services.  &lt;/p&gt;  &lt;p&gt;*Note: Don't attempt to do everything I do in this tutorial in C# (espcially consuming WebService in Silverlight 2) because you simply can't, C# or any other language doesn't have this feature, so stick to VB.NET for consuming you can use C# for the rest, I'll warn when I am using VB.NET exclusive features, so if you want to convert this to C# you'll get enough warning. &lt;/p&gt;  &lt;p&gt;In this tutorial we'll look at &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Creating SQL Server 2005 Database &lt;/li&gt;    &lt;li&gt;Retrieving Data from Database in DataSet &lt;/li&gt;    &lt;li&gt;Consuming DataSet in ASMX WebService (using LINQ) &lt;/li&gt;    &lt;li&gt;Consuming WebService in Silverlight 2 (using VB Literals) &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Before you get started with this make sure you have installed&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Visual Studio 2008 &lt;/li&gt;    &lt;li&gt;SQL Express 2005 &lt;/li&gt;    &lt;li&gt;Silverlight 2 Beta 1 Tools for Visual Studio &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Before anything start with a Silverlight project, and make sure you select Web Solution for hosting, instead of HTML Test Page. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_014305_4.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="272" alt="2008-03-25_014305" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_014305_thumb_1.jpg" width="404" border="0" /&gt;&lt;/a&gt; &lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_014320_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="271" alt="2008-03-25_014320" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_014320_thumb.jpg" width="323" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;h2&gt;Step 1 : Creating SQL Server 2005 Database &lt;/h2&gt;  &lt;p&gt;Now we'll create a SQL Server and add data in the database, for this example I have used countries example, so first go to the web project, select the "App_Data" folder and right-click and select "Add New Item..." &lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_014611_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="74" alt="2008-03-25_014611" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_014611_thumb.jpg" width="208" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Now Visual Studio will ask you the item you want, select "SQL Server Database", give a name to the database and then select select "Add", &lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_014637_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="214" alt="2008-03-25_014637" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_014637_thumb.jpg" width="325" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;This will add a new database to the Web Application, go to server explorer and select, and in Tables, select "Add New Table"&lt;/p&gt;  &lt;p&gt; &lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_014702_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="87" alt="2008-03-25_014702" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_014702_thumb.jpg" width="165" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Now define the table, I have inserted only two columns for this example&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_014759_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="52" alt="2008-03-25_014759" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_014759_thumb.jpg" width="244" border="0" /&gt;&lt;/a&gt; &lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_014838_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="78" alt="2008-03-25_014838" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_014838_thumb.jpg" width="155" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Now I have manually inserted rows in the table, &lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_015552_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="244" alt="2008-03-25_015552" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_015552_thumb.jpg" width="102" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;h2&gt;Step 2: Retrieving data from Database to DataSet.&lt;/h2&gt;  &lt;p&gt;Now go to the web site project and add new item, &lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_015649_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="179" alt="2008-03-25_015649" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_015649_thumb.jpg" width="235" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;When the window pops up select "DataSet", select the file name I have used "CountryDataSet.xsd", Visual Studio will warn you that DataSet should go in "App_Code" Folder, select "Yes".&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_015709_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="307" alt="2008-03-25_015709" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_015709_thumb.jpg" width="469" border="0" /&gt;&lt;/a&gt; &lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_015725_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="170" alt="2008-03-25_015725" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_015725_thumb.jpg" width="411" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Now you'll have an empty DataSet in the solution. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_015742_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="113" alt="2008-03-25_015742" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_015742_thumb.jpg" width="186" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Normally developers do this the "Old School" way, by setting the connections to the database, this way it will automatically make the connection string and generate datasets. &lt;/p&gt;  &lt;p&gt;Now the trick to get data in Dataset is the most simplest way to do it. &lt;/p&gt;  &lt;p&gt;Drag the table you want to add to DataSet space, if you have more than one table don't worry just drag all the tables you want in that dataset, if there are connections it will automatically set them all. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_015835_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="151" alt="2008-03-25_015835" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_015835_thumb.jpg" width="296" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;By default, the DataSet makes Fill,GetData table adapters, if you want to insert or update the tables you have to write new queries on the Table Adaptors. &lt;/p&gt;  &lt;p&gt;Now your data is ready to be consumed by the webservice. &lt;/p&gt;  &lt;h2&gt;Step 3: Consuming DataSet in ASMX web service (Using LINQ)&lt;/h2&gt;  &lt;p&gt;Again go to the Web Site Solution and select "Add New Item..." this time select "Web Service". &lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_015913_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="308" alt="2008-03-25_015913" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_015913_thumb.jpg" width="467" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;By default, the application makes Hello World example, delete that and add a new function. &lt;/p&gt;  &lt;p&gt;But first, set the reference of the web service to "System.XML.Linq", Normally we use web services to communicate in XML format, but since Silverlight doesn't support "System.Data" it is not possible to return DataSet in XML format directly (if you attempt to return a DataSet directly Silverlight will throw errors when a reference is added) so we have to create our own XML String, so and we are going to use LINQ (Language Integrated Query) which is available in .NET Framework 3.0/3.5. &lt;/p&gt;  &lt;pre class="code"&gt;&amp;lt;WebMethod()&amp;gt; _
    &lt;span style="color: blue"&gt;Public Function &lt;/span&gt;AllCountries() &lt;span style="color: blue"&gt;As String

        Dim &lt;/span&gt;sud &lt;span style="color: blue"&gt;As New &lt;/span&gt;CountryDataSetTableAdapters.CountryTableTableAdapter

        &lt;span style="color: blue"&gt;Dim &lt;/span&gt;XDataSet &lt;span style="color: blue"&gt;As New &lt;/span&gt;CountryDataSet.CountryTableDataTable

        sud.Fill(XDataSet)

        &lt;span style="color: blue"&gt;Dim &lt;/span&gt;MyNameSpace &lt;span style="color: blue"&gt;As &lt;/span&gt;XNamespace = &lt;span style="color: #a31515"&gt;"http://tempuri.org/Schema/Countries/"

        &lt;/span&gt;&lt;span style="color: blue"&gt;Dim &lt;/span&gt;XDoc &lt;span style="color: blue"&gt;As &lt;/span&gt;XDocument = &lt;span style="color: blue"&gt;New &lt;/span&gt;XDocument(&lt;span style="color: blue"&gt;New &lt;/span&gt;XDeclaration(&lt;span style="color: #a31515"&gt;"1.0"&lt;/span&gt;, &lt;span style="color: #a31515"&gt;"utf-8"&lt;/span&gt;, &lt;span style="color: #a31515"&gt;"yes"&lt;/span&gt;), _
                                              &lt;span style="color: blue"&gt;New &lt;/span&gt;XElement(MyNameSpace + &lt;span style="color: #a31515"&gt;"Countries"&lt;/span&gt;, _
                                                        &lt;span style="color: blue"&gt;From &lt;/span&gt;country &lt;span style="color: blue"&gt;In &lt;/span&gt;XDataSet _
                                                        &lt;span style="color: blue"&gt;Select New &lt;/span&gt;XElement(&lt;span style="color: #a31515"&gt;"Country"&lt;/span&gt;, _
                                                                            &lt;span style="color: blue"&gt;New &lt;/span&gt;XAttribute(&lt;span style="color: #a31515"&gt;"Code"&lt;/span&gt;, country.CountryISO), _
                                                                            &lt;span style="color: blue"&gt;New &lt;/span&gt;XAttribute(&lt;span style="color: #a31515"&gt;"Name"&lt;/span&gt;, country.CountryName))))

        &lt;span style="color: blue"&gt;Return &lt;/span&gt;XDoc.ToString
    &lt;span style="color: blue"&gt;End Function&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;The Namespace is not required but it would be required to use VB literals when we are consuming this in Silverlight application. &lt;/p&gt;

&lt;h2&gt;Step 4: Consuming Web Service in Silverlight 2 (Using VB Literals) &lt;/h2&gt;

&lt;p&gt;Now we are finished with working on the web site project, and we will turn our focus on the Silverlight Project. &lt;/p&gt;

&lt;p&gt;First we'll add the "Web Reference" &lt;/p&gt;

&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_022423_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="235" alt="2008-03-25_022423" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_022423_thumb.jpg" width="208" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Since the Web Services is in the same solution, you can just click "Discover" and it will fetch the web service, give a namespace to the web service to easily recognise within the application. &lt;/p&gt;

&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_022517_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="353" alt="2008-03-25_022517" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_022517_thumb.jpg" width="438" border="0" /&gt;&lt;/a&gt; &lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_022536_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="170" alt="2008-03-25_022536" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_022536_thumb.jpg" width="209" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;In Silverlight projects System.Xml.Linq is not automatically selected so you have to explicitly include it, right click on the Silverlight Project and then Select "Add Reference", and add reference to System.Xml.Linq, even after you have added reference you still have to import it in the managed code (VB imports System.Xml.Linq/ include System.Xml.Linq) &lt;/p&gt;

&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_022642_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="291" alt="2008-03-25_022642" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_022642_thumb.jpg" width="345" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we have to call the web service from Managed code. &lt;/p&gt;

&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;Imports &lt;/span&gt;System.Xml.Linq
&lt;span style="color: #6464b9"&gt;
&lt;/span&gt;&lt;span style="color: blue"&gt;Partial Public Class &lt;/span&gt;Page
    &lt;span style="color: blue"&gt;Inherits &lt;/span&gt;UserControl

    &lt;span style="color: blue"&gt;Public Sub New&lt;/span&gt;()
        InitializeComponent()
    &lt;span style="color: blue"&gt;End Sub

    Private &lt;/span&gt;src &lt;span style="color: blue"&gt;As New &lt;/span&gt;CountryWebService.WebServiceSoapClient
    &lt;span style="color: blue"&gt;Private &lt;/span&gt;XMLData &lt;span style="color: blue"&gt;As New &lt;/span&gt;XDocument

    &lt;span style="color: blue"&gt;Private Sub &lt;/span&gt;Page_Loaded(&lt;span style="color: blue"&gt;ByVal &lt;/span&gt;sender &lt;span style="color: blue"&gt;As Object&lt;/span&gt;, &lt;span style="color: blue"&gt;ByVal &lt;/span&gt;e &lt;span style="color: blue"&gt;As &lt;/span&gt;System.Windows.RoutedEventArgs) &lt;span style="color: blue"&gt;Handles Me&lt;/span&gt;.Loaded

        src.AllCountriesAsync()
        &lt;span style="color: blue"&gt;AddHandler &lt;/span&gt;src.AllCountriesCompleted, &lt;span style="color: blue"&gt;AddressOf &lt;/span&gt;DownloadCompleted
    &lt;span style="color: blue"&gt;End Sub

    Private Sub &lt;/span&gt;DownloadCompleted(&lt;span style="color: blue"&gt;ByVal &lt;/span&gt;sender &lt;span style="color: blue"&gt;As Object&lt;/span&gt;, &lt;span style="color: blue"&gt;ByVal &lt;/span&gt;e &lt;span style="color: blue"&gt;As &lt;/span&gt;CountryWebService.AllCountriesCompletedEventArgs)

        XMLData = XDocument.Parse(e.Result)

    &lt;span style="color: blue"&gt;End Sub&lt;/span&gt;&lt;/pre&gt;

&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;End Class
&lt;/span&gt;&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;

&lt;p&gt;Now you can set a break point on XMLData = XDocument.Parse(e.Result)  and test the XML we are getting back.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023106_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="463" alt="2008-03-25_023106" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023106_thumb.jpg" width="454" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;As we have XML Data available, normally we create a class object, initialise properties are pick each attribute of the XMLData and populate its property, this is the only way to do in C# but for VB.NET there is very simple way.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;font color="#ff0000"&gt;*WARNING: VB Exclusive feature below*&lt;/font&gt; &lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In VB.NET we have an exclusive feature, called VB Literals, VB literals is a new feature in .NET framework 3.0, which makes life easy infact very easy, this is an extension of type infer available since early VB days, to use this option "Option Infer" should be set "On". &lt;/p&gt;

&lt;p&gt;You can google for "VB Literals" for more info, I won't go in details here so I'll just go directly to the point. &lt;/p&gt;

&lt;p&gt;Type infer means that we don't need to set the type while variable declaration, and this is an essential for VB Literals to work hence not included in C# or any other .NET languages. &lt;/p&gt;

&lt;p&gt;But for this example, since we are working on XML and to enable Intellisense we would require to get the schema of the XML we would be working on, this is not essential but without it there won't be any Intellisense. &lt;/p&gt;

&lt;p&gt;So first we'll get the schema for the XML we got back, to do this we'll set the breakpoint again and get the XML data from XMLData XDocument we are getting back from the webservice. &lt;/p&gt;

&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023205_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="373" alt="2008-03-25_023205" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023205_thumb.jpg" width="338" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Next we'll add a schema file by "Add New Item..." in the Silverlight project, there is a Template "XML to Schema" for this available on MSDN. The Name of the schema doesn't matter here, because we won't be looking at it ever, Visual Studio will do its own magic. &lt;/p&gt;

&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023255_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="264" alt="2008-03-25_023255" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023255_thumb.jpg" width="437" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Now since we already have the data copied in the clipboard, we'll select Add As XML and paste the copied XML to generate Schema. &lt;/p&gt;

&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023307_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="310" alt="2008-03-25_023307" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023307_thumb.jpg" width="392" border="0" /&gt;&lt;/a&gt; &lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023326_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="187" alt="2008-03-25_023326" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023326_thumb.jpg" width="206" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Now we have to import the schema by Adding the reference, Visual Studio will automatically recognises the namespace available in the project, all we have to do is provide the alias.  &lt;/p&gt;

&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023400_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="156" alt="2008-03-25_023400" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023400_thumb.jpg" width="211" border="0" /&gt;&lt;/a&gt;   &lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023415_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="95" alt="2008-03-25_023415" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023415_thumb.jpg" width="392" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we are ready to do use VB Literals, simply declare a variable without any type declaration (Type Infer) &lt;/p&gt;

&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023606_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="125" alt="2008-03-25_023606" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023606_thumb.jpg" width="637" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Visual Studio recognises the the data we are dealing with and started to help, without creating schema and importing we can still use VB Literals but there won't be any intellisense. &lt;/p&gt;

&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023621_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="143" alt="2008-03-25_023621" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023621_thumb.jpg" width="635" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Visual Studio recognises the Elements but don't know where you want to start digging the XML so its showing "?" But once you select the starting Element, it will know where you are and what you are dealing with so now it is showing the "Right Mark", it is its way of saying you are definitely dealing with this. the options are "@" for attribute, "&amp;lt;&amp;gt;" for any Child Element (NOTE: If you are using Element, then you should get its value e.g., i.&amp;lt;ElementName&lt;u&gt;&amp;gt;.Value&lt;/u&gt;) &lt;/p&gt;

&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023726_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="159" alt="2008-03-25_023726" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_023726_thumb.jpg" width="721" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;After you finish writing your query, something wonderful happens, if you add only one single element the Type Inference selects the data as IEnumerable(Of String) but if you add more than one to the collection it will automatically change to IEnumerable(Of &amp;lt;anonymous type&amp;gt;) &lt;/p&gt;

&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_024200_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="62" alt="2008-03-25_024200" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_024200_thumb.jpg" width="516" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_024214_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="68" alt="2008-03-25_024214" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_024214_thumb.jpg" width="614" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;To consume this data in Silverlight application you can use them directly. &lt;/p&gt;

&lt;p&gt;In Page.xaml&lt;/p&gt;

&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;Grid &lt;/span&gt;&lt;span style="color: red"&gt;x&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;="LayoutRoot" &lt;/span&gt;&lt;span style="color: red"&gt;Background&lt;/span&gt;&lt;span style="color: blue"&gt;="White"&amp;gt;
    &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;ListBox &lt;/span&gt;&lt;span style="color: red"&gt;x&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: red"&gt;Name&lt;/span&gt;&lt;span style="color: blue"&gt;="CountryNames"/&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;Grid&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;In Page.xaml.vb&lt;/p&gt;

&lt;pre class="code"&gt;CountryNames.ItemsSource = CountriesData&lt;/pre&gt;

&lt;p&gt;And when you run the application. &lt;/p&gt;

&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_024023_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="244" alt="2008-03-25_024023" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_024023_thumb.jpg" width="321" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;So the complete code looks something like, &lt;/p&gt;

&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_044631_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="465" alt="2008-03-25_044631" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/2008-03-25_044631_thumb.jpg" width="723" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;More on VB Literals and the wonders we can do in Silverlight coming soon. &lt;/p&gt;

&lt;div class="wlWriterSmartContent" id="scid:fb3a1972-4489-4e52-abe7-25a00bb07fdf:fcec567e-0429-4a89-8e70-af2820877ff7" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;&lt;p&gt;Download Source &lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2Beta1WorkingwithWebService_1852/CountriesSample.zip" target="_blank"&gt;CountriesSample.ZIP (963 KB)&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120739"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120739" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/Silverlight2/aggbug/120739.aspx" width="1" height="1" /&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=j3C5rEF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=j3C5rEF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=jX4SQpF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=jX4SQpF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=3krS3Vf"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=3krS3Vf" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/imranshaik/~4/257451554" height="1" width="1"/&gt;</description>
            <dc:creator>Imran Shaik</dc:creator>
            <guid isPermaLink="false">http://geekswithblogs.net/Silverlight2/archive/2008/03/25/silverlight-2-beta-1---web-services-in-quotnew-schoolquot.aspx</guid>
            <pubDate>Tue, 25 Mar 2008 05:17:04 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Silverlight2/comments/120739.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Silverlight2/archive/2008/03/25/silverlight-2-beta-1---web-services-in-quotnew-schoolquot.aspx#feedback</comments>
            <slash:comments>8</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/Silverlight2/comments/commentRss/120739.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/Silverlight2/services/trackbacks/120739.aspx</trackback:ping>
        <feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=imranshaik&amp;itemurl=http%3A%2F%2Fgeekswithblogs.net%2FSilverlight2%2Farchive%2F2008%2F03%2F25%2Fsilverlight-2-beta-1---web-services-in-quotnew-schoolquot.aspx</feedburner:awareness><feedburner:origLink>http://geekswithblogs.net/Silverlight2/archive/2008/03/25/silverlight-2-beta-1---web-services-in-quotnew-schoolquot.aspx</feedburner:origLink></item>
        <item>
            <title>Silverlight 2 Beta 1 Tutorials Coming soon</title>
            <category>Silverlight</category>
            <link>http://feeds.feedburner.com/~r/imranshaik/~3/257362087/silverlight-2-beta-1-tutorials-coming-soon.aspx</link>
            <description>&lt;p&gt;I have been very busy lately with different projects and now I have a little bit of time on my hands to play around with Silverlight 2. As I have promised before loads of Tutorials are coming your way. So stay tuned. &lt;/p&gt;  &lt;p&gt;I am little late in blogging, so there are many tutorials already available, so I'll cut the long way and come directly to doing complex things in Silverlight, so if you are expecting "Hello World" in Silverlight then look else where.&lt;/p&gt;  &lt;p&gt;I will be posting tutorials in VB.NET, and if possible I'll also post C# code, but since Silverlight 2 now supports System.XML.Linq, I will also be using VB Literals which is VB exclusive, so even if you are C# programmer you don't want to miss that, just don't blame me if you start loving VB.NET more than C#, which I bet you will. &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120736"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120736" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/Silverlight2/aggbug/120736.aspx" width="1" height="1" /&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=K9b7C5F"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=K9b7C5F" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=KOS09hF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=KOS09hF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=kHnqTTf"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=kHnqTTf" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/imranshaik/~4/257362087" height="1" width="1"/&gt;</description>
            <dc:creator>Imran Shaik</dc:creator>
            <guid isPermaLink="false">http://geekswithblogs.net/Silverlight2/archive/2008/03/25/silverlight-2-beta-1-tutorials-coming-soon.aspx</guid>
            <pubDate>Tue, 25 Mar 2008 01:30:02 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Silverlight2/comments/120736.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Silverlight2/archive/2008/03/25/silverlight-2-beta-1-tutorials-coming-soon.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/Silverlight2/comments/commentRss/120736.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/Silverlight2/services/trackbacks/120736.aspx</trackback:ping>
        <feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=imranshaik&amp;itemurl=http%3A%2F%2Fgeekswithblogs.net%2FSilverlight2%2Farchive%2F2008%2F03%2F25%2Fsilverlight-2-beta-1-tutorials-coming-soon.aspx</feedburner:awareness><feedburner:origLink>http://geekswithblogs.net/Silverlight2/archive/2008/03/25/silverlight-2-beta-1-tutorials-coming-soon.aspx</feedburner:origLink></item>
        <item>
            <title>Dark side of Silverlight 2 Beta 1</title>
            <category>Silverlight</category>
            <link>http://feeds.feedburner.com/~r/imranshaik/~3/252308734/dark-side-of-silverlight-2-beta-1.aspx</link>
            <description>&lt;p&gt;Being a WPF developer and Silverlight enthusiast and early adopter of Silverlight I was very pleased when Microsoft employees (Tim, Scott, Jesse among others) said its going to be very close to WPF, that meant that I can reuse my WPF skills and apply them in Silverlight 2. And was waiting impatiently for Beta 1 of Silverlight 2, and when I hands on I, I was disappointed with it, I couldn't develop Silverlight applications because I was still struggling to find out what features of WPF is not in Silverlight 2. &lt;/p&gt;  &lt;p&gt;I was going to make a lengthy report on it but I found this &lt;a href="http://devlicio.us/blogs/rob_eisenberg/archive/2008/03/13/there-s-some-darkness-in-your-silver-light.aspx" target="_blank"&gt;blog entry&lt;/a&gt; by Rob already there, what he did in that post was just put down a tiny-winy amount of the problems Silverlight presents over WPF, the list could go on and on. I'll try to post everything else soon. &lt;/p&gt;  &lt;p&gt;Microsoft really need to fix these issues, otherwise we would have two versions of XAML for every instance and both of then absolutely different.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120575"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120575" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/Silverlight2/aggbug/120575.aspx" width="1" height="1" /&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=YGX6MEF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=YGX6MEF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=AloFfzF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=AloFfzF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=m9domFf"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=m9domFf" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/imranshaik/~4/252308734" height="1" width="1"/&gt;</description>
            <dc:creator>Imran Shaik</dc:creator>
            <guid isPermaLink="false">http://geekswithblogs.net/Silverlight2/archive/2008/03/16/dark-side-of-silverlight-2-beta-1.aspx</guid>
            <pubDate>Sun, 16 Mar 2008 06:14:45 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Silverlight2/comments/120575.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Silverlight2/archive/2008/03/16/dark-side-of-silverlight-2-beta-1.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/Silverlight2/comments/commentRss/120575.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/Silverlight2/services/trackbacks/120575.aspx</trackback:ping>
        <feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=imranshaik&amp;itemurl=http%3A%2F%2Fgeekswithblogs.net%2FSilverlight2%2Farchive%2F2008%2F03%2F16%2Fdark-side-of-silverlight-2-beta-1.aspx</feedburner:awareness><feedburner:origLink>http://geekswithblogs.net/Silverlight2/archive/2008/03/16/dark-side-of-silverlight-2-beta-1.aspx</feedburner:origLink></item>
        <item>
            <title>Silverlight 2.0 Beta 1 Initialisation - Deception</title>
            <link>http://feeds.feedburner.com/~r/imranshaik/~3/248127615/silverlight-2.0-beta-1-initialisation---deception.aspx</link>
            <description>&lt;p&gt;After we heard the news of Silverlight 2.0 Beta 1 and the new "xap" architecture I &lt;a href="http://geekswithblogs.net/Silverlight2/archive/2008/02/23/silverlight-2.0-initialisation-improvement.aspx" target="_blank"&gt;blogged&lt;/a&gt; about why it would be better to initialise Silverlight objects independent of Silverlight DOM, but how right was I? &lt;/p&gt;  &lt;p&gt;Here are the new test results, just be on the safe side I ran the tests on IE8 (self proclaimed better browser) &lt;/p&gt;  &lt;p&gt;Figure 1: Browser Zoom at 100%&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverligh.0Beta1InitialisationDeception_FDA/2008-03-09_004810_2.jpg"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" border="0" alt="2008-03-09_004810" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverligh.0Beta1InitialisationDeception_FDA/2008-03-09_004810_thumb.jpg" width="558" height="321" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Figure 2: Browser Zoom at 75%&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverligh.0Beta1InitialisationDeception_FDA/2008-03-09_004828_2.jpg"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" border="0" alt="2008-03-09_004828" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverligh.0Beta1InitialisationDeception_FDA/2008-03-09_004828_thumb.jpg" width="551" height="353" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Figure 3: Browser Zoom at 50% &lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverligh.0Beta1InitialisationDeception_FDA/2008-03-09_004844_2.jpg"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" border="0" alt="2008-03-09_004844" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverligh.0Beta1InitialisationDeception_FDA/2008-03-09_004844_thumb.jpg" width="541" height="396" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Figure 4: Browser Zoom at 125%&lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverligh.0Beta1InitialisationDeception_FDA/2008-03-09_004906_2.jpg"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" border="0" alt="2008-03-09_004906" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverligh.0Beta1InitialisationDeception_FDA/2008-03-09_004906_thumb.jpg" width="538" height="293" /&gt;&lt;/a&gt;  &lt;/p&gt;  &lt;p&gt;Figure 5: Browser Zoom at 150% &lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverligh.0Beta1InitialisationDeception_FDA/2008-03-09_004926_2.jpg"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" border="0" alt="2008-03-09_004926" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverligh.0Beta1InitialisationDeception_FDA/2008-03-09_004926_thumb.jpg" width="535" height="279" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Verdict:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Deceived by Microsoft, maybe they didn't mean to  but still there is no improvement, Silverlight is still DOM dependent, the process of initialisation is however transparent due to &amp;lt;object /&amp;gt; initialisation, this needs to be improved. I'll look deeper into this later whenever I get a chance to, but my instincts tell me that this is due the HTML access from within the managed code. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Download Source Code:&lt;/strong&gt; &lt;/p&gt;  &lt;div style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px; display: inline" id="scid:fb3a1972-4489-4e52-abe7-25a00bb07fdf:76c7749e-aad3-4d37-af5e-0830f26ba0c2" class="wlWriterSmartContent"&gt;&lt;p&gt; &lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverligh.0Beta1InitialisationDeception_FDA/BrowserZoom2.zip" target="_blank"&gt;BrowserZoom2.zip (500 KB)&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;  &lt;p&gt;If you know the reason please let me know, please leave your comments. &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120390"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120390" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/Silverlight2/aggbug/120390.aspx" width="1" height="1" /&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=dgq6zkF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=dgq6zkF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=tnGLFuF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=tnGLFuF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=Xu0Y9zf"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=Xu0Y9zf" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/imranshaik/~4/248127615" height="1" width="1"/&gt;</description>
            <dc:creator>Imran Shaik</dc:creator>
            <guid isPermaLink="false">http://geekswithblogs.net/Silverlight2/archive/2008/03/09/silverlight-2.0-beta-1-initialisation---deception.aspx</guid>
            <pubDate>Sun, 09 Mar 2008 01:10:17 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Silverlight2/comments/120390.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Silverlight2/archive/2008/03/09/silverlight-2.0-beta-1-initialisation---deception.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/Silverlight2/comments/commentRss/120390.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/Silverlight2/services/trackbacks/120390.aspx</trackback:ping>
        <feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=imranshaik&amp;itemurl=http%3A%2F%2Fgeekswithblogs.net%2FSilverlight2%2Farchive%2F2008%2F03%2F09%2Fsilverlight-2.0-beta-1-initialisation---deception.aspx</feedburner:awareness><feedburner:origLink>http://geekswithblogs.net/Silverlight2/archive/2008/03/09/silverlight-2.0-beta-1-initialisation---deception.aspx</feedburner:origLink></item>
        <item>
            <title>Vista Gradients Resources Pack 1</title>
            <category>Silverlight</category>
            <link>http://feeds.feedburner.com/~r/imranshaik/~3/247733752/vista-gradients-resources-pack-1.aspx</link>
            <description>&lt;p&gt;I have been busy with my project so I haven't really got a chance to play with Silverlight 2.0 as much as I wanted to, I had a look at it but thats about it. I'll be posting XAML Resources, VB.NET/C# source code, sample, example, videos, tutorials, media player skins (I have few of them) and almost everything but I have to get my hands dirty with Silverlight 2.0 first which I'll as soon as possible. &lt;/p&gt;  &lt;p&gt;But today you have the first instalment of Vista resources, I had them in Adobe Illustrator format for the last few months but I thought I'll give you a taste of what is coming later on, below is the image of the sample gradients, the gradients have been applied as Rectangle fills using Fill="{StaticResource BrushKey}" on gray background. Although you can use/apply them to any height the preferred height is 40, 20, 40 and 40 respectively with the image below. &lt;/p&gt;  &lt;p&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" border="0" alt="2008-03-08_023916" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/VistaGradientsResourcesPack1_3436/2008-03-08_023916_3.jpg" width="345" height="247" /&gt; &lt;/p&gt;  &lt;p&gt;If you don't know how to use resources here is the sample file, &lt;/p&gt;  &lt;div style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px; display: inline" id="scid:fb3a1972-4489-4e52-abe7-25a00bb07fdf:d67211f5-d89b-46ea-9d36-7402b1306df7" class="wlWriterSmartContent"&gt;&lt;p&gt; &lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/VistaGradientsResourcesPack1_3436/VistaGradientsSample.zip" target="_blank"&gt;Download Source Code (806 KB)&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;  &lt;p&gt;But if you know how to use resources, then this is all you need&lt;/p&gt;  &lt;p&gt;&lt;span style="color: rgb(163,21,21)"&gt;       &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; x&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;:&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Key&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="VistaWEHeader"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; StartPoint&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.5,1"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; EndPoint&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.5,0"&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;           &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush.GradientStops&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FF000000"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FF9AC6CF"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.0494537"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FF54A1AA"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.0714264"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FF146478"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.5"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FF408C9A"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.505493"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FF87B6C0"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.928574"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFBCCDD7"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.950546"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFAEBFCA"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.983521"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFAEBFCA"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="1"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;           &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush.GradientStops&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;       &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;     &lt;br /&gt;      &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;       &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; x&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;:&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Key&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="VistaStatus"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; StartPoint&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.5,1"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; EndPoint&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.5,0"&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;           &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush.GradientStops&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FF000104"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FF02070B"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.494507"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FF33373D"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.494507"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FF757A7C"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.917587"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFA0A1A3"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.956039"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FF48494A"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="1"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush.GradientStops&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;       &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;     &lt;br /&gt;      &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;       &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; x&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;:&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Key&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="VistaIEHeader"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; StartPoint&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.5,1"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; EndPoint&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.5,0"&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;           &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush.GradientStops&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFDFE4F4"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFB8BCC2"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.0439606"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFE0E6F4"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.0769196"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFD4DBE8"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.648346"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFE8ECF4"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.714279"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFFFFFFF"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="1"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;           &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush.GradientStops&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;       &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;     &lt;br /&gt;      &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;       &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; x&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;:&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt;Key&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="VistaMenuBar"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; StartPoint&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.5,1"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; EndPoint&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.5,0"&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;           &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush.GradientStops&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFD4D4D4"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFF0F2F4"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.0659332"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFF6F5F8"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.598907"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFFFFFFF"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.609894"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFFFFFFF"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.978027"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFC7C7C7"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="0.994507"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;               &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;GradientStop&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Color&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="#FFC7C7C7"&lt;/span&gt;&lt;span style="color: rgb(255,0,0)"&gt; Offset&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;="1"/&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;           &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush.GradientStops&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;     &lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;       &lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;LinearGradientBrush&lt;/span&gt;&lt;span style="color: rgb(0,0,255)"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt; &lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;  &lt;p&gt;Stay tuned more coming your way, and don't forget to leave your comments. &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120381"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120381" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/Silverlight2/aggbug/120381.aspx" width="1" height="1" /&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=Et5fzSF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=Et5fzSF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=vBqREGF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=vBqREGF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=MF7xkYf"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=MF7xkYf" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/imranshaik/~4/247733752" height="1" width="1"/&gt;</description>
            <dc:creator>Imran Shaik</dc:creator>
            <guid isPermaLink="false">http://geekswithblogs.net/Silverlight2/archive/2008/03/08/vista-gradients-resources-pack-1.aspx</guid>
            <pubDate>Sat, 08 Mar 2008 03:44:03 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Silverlight2/comments/120381.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Silverlight2/archive/2008/03/08/vista-gradients-resources-pack-1.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/Silverlight2/comments/commentRss/120381.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/Silverlight2/services/trackbacks/120381.aspx</trackback:ping>
        <feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=imranshaik&amp;itemurl=http%3A%2F%2Fgeekswithblogs.net%2FSilverlight2%2Farchive%2F2008%2F03%2F08%2Fvista-gradients-resources-pack-1.aspx</feedburner:awareness><feedburner:origLink>http://geekswithblogs.net/Silverlight2/archive/2008/03/08/vista-gradients-resources-pack-1.aspx</feedburner:origLink></item>
        <item>
            <title>Silverlight 2.0 Beta 1 Uri inconsistency</title>
            <link>http://feeds.feedburner.com/~r/imranshaik/~3/246863386/silverlight-2.0-beta-1-uri-inconsistency.aspx</link>
            <description>&lt;p&gt;Silverlight 2.0 Beta 1 is inconsistent with Uri Relative. &lt;/p&gt; &lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt; &lt;/p&gt; &lt;p&gt;In designing phase when you give URI relative address to MediaElement/Image or set any source from the code behind, the relative address is with the xaml/vb/cs file you are defining it in, for example, consider the following project &lt;/p&gt; &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2.0Beta1Uriinconsistency_F265/2008-03-06_165455_2.jpg"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" border="0" alt="2008-03-06_165455" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/Silverlight2.0Beta1Uriinconsistency_F265/2008-03-06_165455_thumb.jpg" width="194" height="244" /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;In Page.xaml if you define the source, the preview shows the image, but when the application is run it doesn't show the image &lt;/p&gt;&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Image&lt;/span&gt; &lt;span class="attr"&gt;x:Name&lt;/span&gt;&lt;span class="kwrd"&gt;="bg"&lt;/span&gt; &lt;span class="attr"&gt;Source&lt;/span&gt;&lt;span class="kwrd"&gt;="bg.jpg"&lt;/span&gt;&lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
]]&gt;&lt;/style&gt;

&lt;p&gt;&lt;strong&gt;Reason:&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;The reason is the relative uri for the source, however the preview works but when complied the "xap" is generated in ClientBin directory, and the relative Uri will be changed to ClientBin so in run time it will look for the bg.jpg in ClientBin directory. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;Solution 1: Solution is the provide absolute Uri for the source, eg., &lt;/p&gt;&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Image&lt;/span&gt; &lt;span class="attr"&gt;x:Name&lt;/span&gt;&lt;span class="kwrd"&gt;="bg"&lt;/span&gt; &lt;span class="attr"&gt;Source&lt;/span&gt;&lt;span class="kwrd"&gt;="http://website.com/bg.jpg"&lt;/span&gt;&lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
]]&gt;&lt;/style&gt;

&lt;p&gt;Solution 2: Copy all your assets in ClientBin directory &lt;/p&gt;
&lt;p&gt;Solution 3: Use absolute uri if setting from code behind eg., &lt;/p&gt;&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;MediaElement&lt;/span&gt; &lt;span class="attr"&gt;x:Name&lt;/span&gt;&lt;span class="kwrd"&gt;="ThisVideo"&lt;/span&gt; &lt;span class="attr"&gt;Height&lt;/span&gt;&lt;span class="kwrd"&gt;="500"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
]]&gt;&lt;/style&gt;

&lt;p&gt;Now set the source from code behind using Application path, in VB (take out _  and add ; at the end for C#),&lt;/p&gt;&lt;pre class="csharpcode"&gt;VideoScreen.Source = _
 &lt;span class="kwrd"&gt;New&lt;/span&gt; Uri(Application.Current.Host.Source.AbsolutePath &amp;amp; _ 
&lt;span class="str"&gt;"../../../video.wmv"&lt;/span&gt;, UriKind.Absolute)&lt;/pre&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
]]&gt;&lt;/style&gt;

&lt;p&gt;Please leave your comments. &lt;/p&gt;&lt;pre class="csharpcode"&gt; &lt;/pre&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
]]&gt;&lt;/style&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120294"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120294" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/Silverlight2/aggbug/120294.aspx" width="1" height="1" /&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=R3SYqnF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=R3SYqnF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=IDWZJkF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=IDWZJkF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=qLiGszf"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=qLiGszf" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/imranshaik/~4/246863386" height="1" width="1"/&gt;</description>
            <dc:creator>Imran Shaik</dc:creator>
            <guid isPermaLink="false">http://geekswithblogs.net/Silverlight2/archive/2008/03/06/silverlight-2.0-beta-1-uri-inconsistency.aspx</guid>
            <pubDate>Thu, 06 Mar 2008 17:14:37 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Silverlight2/comments/120294.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Silverlight2/archive/2008/03/06/silverlight-2.0-beta-1-uri-inconsistency.aspx#feedback</comments>
            <slash:comments>10</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/Silverlight2/comments/commentRss/120294.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/Silverlight2/services/trackbacks/120294.aspx</trackback:ping>
        <feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=imranshaik&amp;itemurl=http%3A%2F%2Fgeekswithblogs.net%2FSilverlight2%2Farchive%2F2008%2F03%2F06%2Fsilverlight-2.0-beta-1-uri-inconsistency.aspx</feedburner:awareness><feedburner:origLink>http://geekswithblogs.net/Silverlight2/archive/2008/03/06/silverlight-2.0-beta-1-uri-inconsistency.aspx</feedburner:origLink></item>
        <item>
            <title>The day web changed is finally here!</title>
            <link>http://feeds.feedburner.com/~r/imranshaik/~3/246259020/the-day-web-changed-is-finally-here.aspx</link>
            <description>&lt;p&gt;Today by Hijri Calender is my birthday, and today is the day the web development has changed for the good, coincidence? perhaps symbolic? &lt;/p&gt;  &lt;p&gt;Silverlight 2.0 Beta 1 Downloads are here &lt;/p&gt;  &lt;p&gt;&lt;a href="http://silverlight.dlservice.microsoft.com/download/6/6/3/663404e9-990d-4b74-873c-c4611aea2133/Silverlight.2.0.exe" target="_blank"&gt;Silverlight 2.0 Beta 1 Plug in Rutime&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=4e03409a-77f3-413f-b108-1243c243c4fe&amp;amp;DisplayLang=en" target="_blank"&gt;Silverlight 2.0 Beta 1 SDK&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=e0bae58e-9c0b-4090-a1db-f134d9f095fd&amp;amp;DisplayLang=en" target="_blank"&gt;Silverlight 2.0 Beta 1 Tools for Visual Studio 2008&lt;/a&gt; (Includes SDK)&lt;/p&gt;  &lt;p&gt;&lt;a title="Expression Blend 2.5 March Preview" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=32a3e916-e681-4955-bc9f-cfba49273c7c&amp;amp;DisplayLang=en" target="_blank"&gt;Expression Blend 2.5 March Preview&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120237"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120237" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/Silverlight2/aggbug/120237.aspx" width="1" height="1" /&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=Du0OqzF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=Du0OqzF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=INtePkF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=INtePkF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=pjYWQif"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=pjYWQif" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/imranshaik/~4/246259020" height="1" width="1"/&gt;</description>
            <dc:creator>Imran Shaik</dc:creator>
            <guid isPermaLink="false">http://geekswithblogs.net/Silverlight2/archive/2008/03/05/the-day-web-changed-is-finally-here.aspx</guid>
            <pubDate>Wed, 05 Mar 2008 17:52:16 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Silverlight2/comments/120237.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Silverlight2/archive/2008/03/05/the-day-web-changed-is-finally-here.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/Silverlight2/comments/commentRss/120237.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/Silverlight2/services/trackbacks/120237.aspx</trackback:ping>
        <feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=imranshaik&amp;itemurl=http%3A%2F%2Fgeekswithblogs.net%2FSilverlight2%2Farchive%2F2008%2F03%2F05%2Fthe-day-web-changed-is-finally-here.aspx</feedburner:awareness><feedburner:origLink>http://geekswithblogs.net/Silverlight2/archive/2008/03/05/the-day-web-changed-is-finally-here.aspx</feedburner:origLink></item>
        <item>
            <title>.NET Framework Libraries in Silverlight 2.0 Beta 1</title>
            <link>http://feeds.feedburner.com/~r/imranshaik/~3/245897312/.net-framework-libraries-in-silverlight-2.0-beta-1.aspx</link>
            <description>&lt;p&gt;Overview of Libraries in Silverlight 1.1 Alpha and Silverlight 2.0 Beta 1 &lt;/p&gt;  &lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/.NETFrameworkLibrariesinSilverlig.0Beta1_3C83/Silverlight%202.0%20.NET%20Libraries_2.jpg" target="_blank"&gt;&lt;strong&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/.NETFrameworkLibrariesinSilverlig.0Beta1_3C83/Silverlight%202.0%20.NET%20Libraries_2.jpg" target="_blank"&gt;&lt;img height="1887" alt="Silverlight 2.0 .NET Libraries" src="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/.NETFrameworkLibrariesinSilverlig.0Beta1_3C83/Silverlight%202.0%20.NET%20Libraries_thumb.jpg" width="502" border="0" /&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Download Chart&lt;/strong&gt;&lt;/p&gt;  &lt;div class="wlWriterSmartContent" id="scid:fb3a1972-4489-4e52-abe7-25a00bb07fdf:0d93ea3c-40e4-4ff4-b3e1-b77fd43e7d46" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;&lt;p&gt; &lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/.NETFrameworkLibrariesinSilverlig.0Beta1_3C83/Silverlight%202.0%20.NET%20Libraries.pdf" target="_blank"&gt;PDF Format (56 KB)&lt;/a&gt;&lt;br /&gt; &lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/Silverlight2/WindowsLiveWriter/.NETFrameworkLibrariesinSilverlig.0Beta1_3C83/Silverlight%202.0%20.NET%20Libraries.xps" target="_blank"&gt;XPS Format (156 KB)&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;  &lt;p&gt;&lt;strong&gt;NOTE: &lt;/strong&gt;This is the overview of the base libraries of .NET Framework, complete libraries may/may not be available for Silverlight 2.0&lt;/p&gt;  &lt;p&gt;Silverlight 2.0 Beta is huge compared to Silverlight 1.1 Alpha not just in terms of including the base libraries but also in providing extra sub classes within the libraries. &lt;/p&gt;  &lt;p&gt;For example, Silverlight 1.1 Alpha included only three sub classes for System.Security.Cryptography &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;RNGCryptoServiceProvider&lt;/li&gt;    &lt;li&gt;CryptographicException&lt;/li&gt;    &lt;li&gt;RandomNumberGenerator&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Where as Silverlight 2.0 Beta 1 includes about 20 sub classes &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Aes&lt;/li&gt;    &lt;li&gt;AesManaged&lt;/li&gt;    &lt;li&gt;CryptographicException&lt;/li&gt;    &lt;li&gt;CryptographicUnexpectedOperationException&lt;/li&gt;    &lt;li&gt;CryptoStream&lt;/li&gt;    &lt;li&gt;DeriveBytes&lt;/li&gt;    &lt;li&gt;HashAlgorithm&lt;/li&gt;    &lt;li&gt;HMAC&lt;/li&gt;    &lt;li&gt;HMACSHA1&lt;/li&gt;    &lt;li&gt;HMACSHA256&lt;/li&gt;    &lt;li&gt;KeyedHashAlgorithm&lt;/li&gt;    &lt;li&gt;KeySizes&lt;/li&gt;    &lt;li&gt;RandomNumberGenerator&lt;/li&gt;    &lt;li&gt;Rfc2898DeriveBytes&lt;/li&gt;    &lt;li&gt;RNGCryptoServiceProvider&lt;/li&gt;    &lt;li&gt;SHA1&lt;/li&gt;    &lt;li&gt;SHA1Managed&lt;/li&gt;    &lt;li&gt;SHA256&lt;/li&gt;    &lt;li&gt;SHA256Managed&lt;/li&gt;    &lt;li&gt;SymmetricAlgorithm&lt;/li&gt; &lt;/ol&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120213"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120213" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/Silverlight2/aggbug/120213.aspx" width="1" height="1" /&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=26VHkuF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=26VHkuF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=1Teg8nF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=1Teg8nF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=AT9l54f"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=AT9l54f" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/imranshaik/~4/245897312" height="1" width="1"/&gt;</description>
            <dc:creator>Imran Shaik</dc:creator>
            <guid isPermaLink="false">http://geekswithblogs.net/Silverlight2/archive/2008/03/05/.net-framework-libraries-in-silverlight-2.0-beta-1.aspx</guid>
            <pubDate>Wed, 05 Mar 2008 04:20:14 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Silverlight2/comments/120213.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Silverlight2/archive/2008/03/05/.net-framework-libraries-in-silverlight-2.0-beta-1.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/Silverlight2/comments/commentRss/120213.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/Silverlight2/services/trackbacks/120213.aspx</trackback:ping>
        <feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=imranshaik&amp;itemurl=http%3A%2F%2Fgeekswithblogs.net%2FSilverlight2%2Farchive%2F2008%2F03%2F05%2F.net-framework-libraries-in-silverlight-2.0-beta-1.aspx</feedburner:awareness><feedburner:origLink>http://geekswithblogs.net/Silverlight2/archive/2008/03/05/.net-framework-libraries-in-silverlight-2.0-beta-1.aspx</feedburner:origLink></item>
        <item>
            <title>Silverlight 2.0 Documentation on MSDN.</title>
            <link>http://feeds.feedburner.com/~r/imranshaik/~3/245875826/silverlight-2.0-documentation-on-msdn.aspx</link>
            <description>&lt;p&gt;The party begins, Silverlight 2.0 Beta 1 &lt;a href="http://msdn2.microsoft.com/en-us/library/bb404700.aspx" target="_blank"&gt;Documentation&lt;/a&gt; is up on MSDN.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120209"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=120209" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/Silverlight2/aggbug/120209.aspx" width="1" height="1" /&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=htOTwBF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=htOTwBF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=EgPw5YF"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=EgPw5YF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/imranshaik?a=XAq4Cbf"&gt;&lt;img src="http://feeds.feedburner.com/~f/imranshaik?i=XAq4Cbf" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/imranshaik/~4/245875826" height="1" width="1"/&gt;</description>
            <dc:creator>Imran Shaik</dc:creator>
            <guid isPermaLink="false">http://geekswithblogs.net/Silverlight2/archive/2008/03/05/silverlight-2.0-documentation-on-msdn.aspx</guid>
            <pubDate>Wed, 05 Mar 2008 03:18:45 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Silverlight2/comments/120209.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Silverlight2/archive/2008/03/05/silverlight-2.0-documentation-on-msdn.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/Silverlight2/comments/commentRss/120209.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/Silverlight2/services/trackbacks/120209.aspx</trackback:ping>
        <feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=imranshaik&amp;itemurl=http%3A%2F%2Fgeekswithblogs.net%2FSilverlight2%2Farchive%2F2008%2F03%2F05%2Fsilverlight-2.0-documentation-on-msdn.aspx</feedburner:awareness><feedburner:origLink>http://geekswithblogs.net/Silverlight2/archive/2008/03/05/silverlight-2.0-documentation-on-msdn.aspx</feedburner:origLink></item>
    <feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetFeedData?uri=imranshaik</feedburner:awareness></channel>
</rss>
