<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>Silverlight Next</title><link>http://www.silverlightnext.com/</link><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/SilverlightNext" /><description>Silverlight is the Next WEB</description><language>en</language><managingEditor>noreply@blogger.com (Amyo Kabir)</managingEditor><lastBuildDate>Thu, 16 Feb 2012 02:11:47 PST</lastBuildDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">12</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">25</openSearch:itemsPerPage><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="silverlightnext" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><itunes:explicit>no</itunes:explicit><itunes:subtitle>Silverlight is the Next WEB</itunes:subtitle><item><title>Silverlight Popup sample</title><link>http://www.silverlightnext.com/2011/01/silverlight-popup-sample.html</link><author>noreply@blogger.com (Amyo Kabir)</author><pubDate>Sat, 08 Jan 2011 06:50:20 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8157507145115047217.post-780815442168183865</guid><description>Silverlight &lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.popup%28v=vs.95%29.aspx"&gt;Popup &lt;/a&gt;displays content on top of existing Silverlight content, within the bounds of the Silverlight control.&lt;br /&gt;
&lt;u&gt;Some useful links to learn more about Popup control:&lt;/u&gt;&lt;br /&gt;
1. &lt;a href="http://jesseliberty.com/2008/06/06/popup-control/"&gt;http://jesseliberty.com/2008/06/06/popup-control/&lt;/a&gt;&lt;br /&gt;
2. &lt;a href="http://blogs.msdn.com/b/silverlight_sdk/archive/2008/04/18/playing-with-the-popup-control.aspx"&gt;http://blogs.msdn.com/b/silverlight_sdk/archive/2008/04/18/playing-with-the-popup-control.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Popup sample:&lt;/b&gt;&lt;/u&gt; (&lt;a href="http://cid-4b03aa8222dc3c5e.office.live.com/self.aspx/Silverlight%204/SilverlightPopup.zip"&gt;Download source&lt;/a&gt;)&lt;br /&gt;
&lt;script src="http://www.usfromdhaka.com/amyo/Silverlight.js" type="text/javascript"&gt;
&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &amp;&amp; sender != 0) {
              appSource = sender.getHost().Source;
            }
            
            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;

            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }

            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;

            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";

            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }

            throw new Error(errMsg);
        }
    
&lt;/script&gt;
    &lt;br /&gt;
&lt;div id="silverlightControlHost" style="height: 600px; width: 100%;"&gt;
&lt;object data="data:application/x-silverlight-2," height="100%" type="application/x-silverlight-2" width="100%"&gt;
    &lt;param name="source" value="http://www.usfromdhaka.com/amyo/ClientBin/SilverlightPopup.xap"/&gt;



    &lt;param name="onError" value="onSilverlightError" /&gt;



    &lt;param name="background" value="white" /&gt;



    &lt;param name="minRuntimeVersion" value="4.0.50401.0" /&gt;



    &lt;param name="autoUpgrade" value="true" /&gt;



    &lt;a href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=4.0.50401.0" style="text-decoration:none"&gt;
      &lt;img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/&gt;
    &lt;/a&gt;
     &lt;/object&gt;&lt;iframe id="_sl_historyFrame" style="border: 0px none; height: 0px; visibility: hidden; width: 0px;"&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8157507145115047217-780815442168183865?l=www.silverlightnext.com' alt='' /&gt;&lt;/div&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2011-01-08T06:50:20.618-08:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total></item><item><title>Beginner - use  WCF Service in Silverlight application</title><link>http://www.silverlightnext.com/2010/10/beginner-use-wcf-service-in-silverlight.html</link><author>noreply@blogger.com (Amyo Kabir)</author><pubDate>Wed, 27 Oct 2010 13:02:48 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8157507145115047217.post-4155575450426971714</guid><description>We will create a WCF service in the WEB project and use it in Silverlight application.&lt;br /&gt;
&lt;br /&gt;
You can &lt;a href="http://cid-4b03aa8222dc3c5e.office.live.com/self.aspx/Silverlight%204/SLWCFService.zip?ccsf=1#resId/4B03AA8222DC3C5E%21462"&gt;download the sample project&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Tools:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
1. Visual Studio 2010 (Silverlight tools installed)&lt;br /&gt;
More info visit: &lt;a href="http://www.silverlight.net/getstarted/"&gt;http://www.silverlight.net/getstarted/&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Create new project:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/TMh_nZrd1eI/AAAAAAAAAJQ/DJniKsnX76k/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="460" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/TMh_nZrd1eI/AAAAAAAAAJQ/DJniKsnX76k/s640/1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span id="goog_1536722250"&gt;&lt;/span&gt;&lt;span id="goog_1536722251"&gt;&lt;/span&gt;&lt;span id="goog_1536722252"&gt;&lt;/span&gt;&lt;span id="goog_1536722253"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Project Structure:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/_4CD2xPgWKyQ/TMiAwHCMQjI/AAAAAAAAAKE/UEY5l0DiPC8/s1600/str.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="428" src="http://3.bp.blogspot.com/_4CD2xPgWKyQ/TMiAwHCMQjI/AAAAAAAAAKE/UEY5l0DiPC8/s640/str.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Add WCF service to WEB project:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/TMh_p46dgiI/AAAAAAAAAJU/1zh0Vxm6KZw/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="560" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/TMh_p46dgiI/AAAAAAAAAJU/1zh0Vxm6KZw/s640/2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TMh_rQ9gxPI/AAAAAAAAAJY/REHMl686jis/s1600/3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="460" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TMh_rQ9gxPI/AAAAAAAAAJY/REHMl686jis/s640/3.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Write WCF service method:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TMh_2ZULlAI/AAAAAAAAAJc/mC-zEky8wTk/s1600/4.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="274" src="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TMh_2ZULlAI/AAAAAAAAAJc/mC-zEky8wTk/s640/4.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Silverlight UI:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TMiAueBLdmI/AAAAAAAAAKA/Ot3Snp3-BT8/s1600/77.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="486" src="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TMiAueBLdmI/AAAAAAAAAKA/Ot3Snp3-BT8/s640/77.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Add WCF Service reference into Silverlight project:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
**Build WEB application before adding Service reference&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;u&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TMiAAvygJ1I/AAAAAAAAAJg/W2il9xBXj3w/s1600/5.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="640" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TMiAAvygJ1I/AAAAAAAAAJg/W2il9xBXj3w/s640/5.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/TMiABpXC1mI/AAAAAAAAAJk/-68k2irvmGY/s1600/6.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="528" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/TMiABpXC1mI/AAAAAAAAAJk/-68k2irvmGY/s640/6.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/_4CD2xPgWKyQ/TMiALXSPudI/AAAAAAAAAJo/XsAxMVHzTAA/s1600/7.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="528" src="http://3.bp.blogspot.com/_4CD2xPgWKyQ/TMiALXSPudI/AAAAAAAAAJo/XsAxMVHzTAA/s640/7.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Initiate and call WCF service method:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TMiAUo9NH5I/AAAAAAAAAJs/JhUMtXKa1gA/s1600/8.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="352" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TMiAUo9NH5I/AAAAAAAAAJs/JhUMtXKa1gA/s640/8.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TMiAksOy94I/AAAAAAAAAJw/La4y7smwDII/s1600/9.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="298" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TMiAksOy94I/AAAAAAAAAJw/La4y7smwDII/s640/9.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/_4CD2xPgWKyQ/TMiAmJblKiI/AAAAAAAAAJ0/--zkJZJi1Lc/s1600/10.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="348" src="http://3.bp.blogspot.com/_4CD2xPgWKyQ/TMiAmJblKiI/AAAAAAAAAJ0/--zkJZJi1Lc/s640/10.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Sample Output:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TMiArJxJm4I/AAAAAAAAAJ4/QaYj5RTdI_c/s1600/11.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="524" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TMiArJxJm4I/AAAAAAAAAJ4/QaYj5RTdI_c/s640/11.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Before Publishing:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/TMiAs6U79CI/AAAAAAAAAJ8/ebH2UrcQ8Gs/s1600/12.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="278" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/TMiAs6U79CI/AAAAAAAAAJ8/ebH2UrcQ8Gs/s640/12.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://cid-4b03aa8222dc3c5e.office.live.com/self.aspx/Silverlight%204/SLWCFService.zip?ccsf=1#resId/4B03AA8222DC3C5E%21462"&gt;Download Source&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8157507145115047217-4155575450426971714?l=www.silverlightnext.com' alt='' /&gt;&lt;/div&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-27T13:02:48.141-07:00</app:edited><media:thumbnail url="http://2.bp.blogspot.com/_4CD2xPgWKyQ/TMh_nZrd1eI/AAAAAAAAAJQ/DJniKsnX76k/s72-c/1.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>Silverlight AI Game</title><link>http://www.silverlightnext.com/2010/08/silverlight-ai-game.html</link><author>noreply@blogger.com (Amyo Kabir)</author><pubDate>Mon, 30 Aug 2010 08:41:53 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8157507145115047217.post-8304142930160871379</guid><description>Today I am releasing my first demo version of &lt;b&gt;Silverlight AI Game&lt;/b&gt; developed using &lt;a href="http://ai-depot.com/articles/minimax-explained/"&gt;Minimax&lt;/a&gt; algorithm.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;The Game:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
Sholo Guti is a very popular game of Bangladesh. Even though it is similar to &lt;b&gt;Checkers&lt;/b&gt;, the board is more attractive, and there's a little variation in the rules. The pawns can move to any direction indicated on the board. Unlike Checkers, you can leave any possible captures if you wish.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Check demo here:&lt;/b&gt;&lt;/u&gt; &lt;a href="http://usfromdhaka.com/silverlightaigame/"&gt;http://usfromdhaka.com/silverlightaigame/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Screen shot:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;img border="0" height="358" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/THvPOkQiYLI/AAAAAAAAAJA/4RouckjS_pg/s640/1.png" width="640" /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8157507145115047217-8304142930160871379?l=www.silverlightnext.com' alt='' /&gt;&lt;/div&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-30T08:41:53.691-07:00</app:edited><media:thumbnail url="http://2.bp.blogspot.com/_4CD2xPgWKyQ/THvPOkQiYLI/AAAAAAAAAJA/4RouckjS_pg/s72-c/1.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>Silverlight dynamic point to point animation with EasingFunction</title><link>http://www.silverlightnext.com/2010/08/silverlight-dynamic-point-to-point.html</link><author>noreply@blogger.com (Amyo Kabir)</author><pubDate>Sat, 28 Aug 2010 02:02:23 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8157507145115047217.post-5937930593117643356</guid><description>&lt;a href="http://cid-4b03aa8222dc3c5e.office.live.com/self.aspx/Silverlight%204/SimpleAnimation.zip"&gt;Download&lt;/a&gt; the source &lt;a href="http://cid-4b03aa8222dc3c5e.office.live.com/self.aspx/Silverlight%204/SimpleAnimation.zip"&gt;here&lt;/a&gt;:&lt;br /&gt;
Final output below:
&lt;br /&gt;
&lt;script src="http://www.usfromdhaka.com/amyo/Silverlight.js" type="text/javascript"&gt;
&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
        function &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;onSilverlightError&lt;/span&gt;&lt;/span&gt;(sender, &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;args&lt;/span&gt;&lt;/span&gt;) {
            var &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;appSource&lt;/span&gt;&lt;/span&gt; = "";
            if (sender != null &amp;&amp; sender != 0) {
              &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;appSource&lt;/span&gt;&lt;/span&gt; = sender.&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;getHost&lt;/span&gt;&lt;/span&gt;().Source;
            }
            
            var &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errorType&lt;/span&gt;&lt;/span&gt; = &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;args&lt;/span&gt;&lt;/span&gt;.&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;ErrorType&lt;/span&gt;&lt;/span&gt;;
            var &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;iErrorCode&lt;/span&gt;&lt;/span&gt; = &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;args&lt;/span&gt;&lt;/span&gt;.&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;ErrorCode&lt;/span&gt;&lt;/span&gt;;

            if (&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errorType&lt;/span&gt;&lt;/span&gt; == "&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;ImageError&lt;/span&gt;&lt;/span&gt;" || &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errorType&lt;/span&gt;&lt;/span&gt; == "&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;MediaError&lt;/span&gt;&lt;/span&gt;") {
              return;
            }

            var &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errMsg&lt;/span&gt;&lt;/span&gt; = "&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;Unhandled&lt;/span&gt;&lt;/span&gt; Error in &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;Silverlight&lt;/span&gt;&lt;/span&gt; Application " +  &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;appSource&lt;/span&gt;&lt;/span&gt; + "\n" ;

            &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errMsg&lt;/span&gt;&lt;/span&gt; += "Code: "+ &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;iErrorCode&lt;/span&gt;&lt;/span&gt; + "    \n";
            &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errMsg&lt;/span&gt;&lt;/span&gt; += "Category: " + &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errorType&lt;/span&gt;&lt;/span&gt; + "       \n";
            &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errMsg&lt;/span&gt;&lt;/span&gt; += "Message: " + &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;args&lt;/span&gt;&lt;/span&gt;.&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;ErrorMessage&lt;/span&gt;&lt;/span&gt; + "     \n";

            if (&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errorType&lt;/span&gt;&lt;/span&gt; == "&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;ParserError&lt;/span&gt;&lt;/span&gt;") {
                &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errMsg&lt;/span&gt;&lt;/span&gt; += "File: " + &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;args&lt;/span&gt;&lt;/span&gt;.&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;xamlFile&lt;/span&gt;&lt;/span&gt; + "     \n";
                &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errMsg&lt;/span&gt;&lt;/span&gt; += "Line: " + &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;args&lt;/span&gt;&lt;/span&gt;.&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;lineNumber&lt;/span&gt;&lt;/span&gt; + "     \n";
                &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errMsg&lt;/span&gt;&lt;/span&gt; += "Position: " + &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;args&lt;/span&gt;&lt;/span&gt;.&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;charPosition&lt;/span&gt;&lt;/span&gt; + "     \n";
            }
            else if (&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errorType&lt;/span&gt;&lt;/span&gt; == "&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;RuntimeError&lt;/span&gt;&lt;/span&gt;") {           
                if (&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;args&lt;/span&gt;&lt;/span&gt;.&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;lineNumber&lt;/span&gt;&lt;/span&gt; != 0) {
                    &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errMsg&lt;/span&gt;&lt;/span&gt; += "Line: " + &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;args&lt;/span&gt;&lt;/span&gt;.&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;lineNumber&lt;/span&gt;&lt;/span&gt; + "     \n";
                    &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errMsg&lt;/span&gt;&lt;/span&gt; += "Position: " +  &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;args&lt;/span&gt;&lt;/span&gt;.&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;charPosition&lt;/span&gt;&lt;/span&gt; + "     \n";
                }
                &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errMsg&lt;/span&gt;&lt;/span&gt; += "&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;MethodName&lt;/span&gt;&lt;/span&gt;: " + &lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;args&lt;/span&gt;&lt;/span&gt;.&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;methodName&lt;/span&gt;&lt;/span&gt; + "     \n";
            }

            throw new Error(&lt;span style="background: none repeat scroll 0% 0% yellow;" class="&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;goog&lt;/span&gt;-spellcheck-word"&gt;&lt;span style="background: none repeat scroll 0% 0% yellow;" class="goog-spellcheck-word"&gt;errMsg&lt;/span&gt;&lt;/span&gt;);
        }
    
&lt;/script&gt;
    &lt;br /&gt;
&lt;div id="silverlightControlHost" style="height: 500px; width: 100%;"&gt;
&lt;object data="data:application/x-silverlight-2," height="100%" type="application/x-silverlight-2" width="100%"&gt;
    &lt;param name="source" value="http://www.usfromdhaka.com/amyo/ClientBin/SimpleAnimation.xap"/&gt;








    &lt;param name="onError" value="onSilverlightError" /&gt;








    &lt;param name="background" value="white" /&gt;








    &lt;param name="minRuntimeVersion" value="4.0.50401.0" /&gt;








    &lt;param name="autoUpgrade" value="true" /&gt;








    &lt;a href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=4.0.50401.0" style="text-decoration:none"&gt;
      &lt;img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/&gt;
    &lt;/a&gt;
     &lt;/object&gt;&lt;iframe id="_sl_historyFrame" style="border: 0px none; height: 0px; visibility: hidden; width: 0px;"&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;My article is divided into two section:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;b&gt;Section 1:&lt;/b&gt; Will show you how to create a point to point animation with EasingFunction using Blend&lt;br /&gt;
&lt;b&gt;Section 2:&lt;/b&gt; How to set the point value dynamically in code behind&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Section 1:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
I will ignore the project creation part. &lt;br /&gt;
I will use a simple Layout in MainPage.xaml&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/_4CD2xPgWKyQ/THi-6kkCBjI/AAAAAAAAAII/dQd4BJCHAqM/s1600/0.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="60" src="http://3.bp.blogspot.com/_4CD2xPgWKyQ/THi-6kkCBjI/AAAAAAAAAII/dQd4BJCHAqM/s320/0.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Lets open the MainPage.xaml in Expression Blend and create a Storyboard&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/THjAcsvMHyI/AAAAAAAAAIQ/BEdjEQv3dLk/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/THjAcsvMHyI/AAAAAAAAAIQ/BEdjEQv3dLk/s320/1.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the timeline select image add a KeyFrame to 0 sec&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/_4CD2xPgWKyQ/THjAnodb7MI/AAAAAAAAAIY/O9zc1aTZt_Q/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="540" src="http://4.bp.blogspot.com/_4CD2xPgWKyQ/THjAnodb7MI/AAAAAAAAAIY/O9zc1aTZt_Q/s640/2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the end keyFrame at 2 sec and move the image to some location (some location because the location will be controlled from the code behind)&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/THjHoWvlOeI/AAAAAAAAAIg/ZprMcFA18H0/s1600/3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/THjHoWvlOeI/AAAAAAAAAIg/ZprMcFA18H0/s1600/3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="536" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/THjHoWvlOeI/AAAAAAAAAIg/ZprMcFA18H0/s640/3.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now add back EasingFunction to the end keyFrame:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/_4CD2xPgWKyQ/THjIfE4kcsI/AAAAAAAAAIo/DBIozXlBGAc/s1600/4.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="404" src="http://3.bp.blogspot.com/_4CD2xPgWKyQ/THjIfE4kcsI/AAAAAAAAAIo/DBIozXlBGAc/s640/4.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Section -2:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
Storyboard creation is completed. Now modify the generated XAML to control it from code behind:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/_4CD2xPgWKyQ/THjKeVc8zWI/AAAAAAAAAIw/3TktfTnGN2s/s1600/5.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="278" src="http://4.bp.blogspot.com/_4CD2xPgWKyQ/THjKeVc8zWI/AAAAAAAAAIw/3TktfTnGN2s/s640/5.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;Modify the animation point with some random value from code behind:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/THjL_HZ-KPI/AAAAAAAAAI4/Xsmx3Xl2-cg/s1600/6.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="268" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/THjL_HZ-KPI/AAAAAAAAAI4/Xsmx3Xl2-cg/s640/6.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thats the end..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8157507145115047217-5937930593117643356?l=www.silverlightnext.com' alt='' /&gt;&lt;/div&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-28T02:02:23.308-07:00</app:edited><media:thumbnail url="http://3.bp.blogspot.com/_4CD2xPgWKyQ/THi-6kkCBjI/AAAAAAAAAII/dQd4BJCHAqM/s72-c/0.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Customize Silverlight toolkit navigation application project template</title><link>http://www.silverlightnext.com/2010/07/customize-silverlight-toolkit.html</link><author>noreply@blogger.com (Amyo Kabir)</author><pubDate>Sat, 17 Jul 2010 21:12:11 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8157507145115047217.post-753009238834022718</guid><description>&lt;br /&gt;
To get the Silverlight Navigation Application Template install the latest version of &lt;a href="http://silverlight.codeplex.com/"&gt;Silverlight toolkit&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Now lets create a Silverlight project using the navigation application template:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TDxHSUJ4WhI/AAAAAAAAAHY/G0Q0rqaq9Q0/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="500" src="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TDxHSUJ4WhI/AAAAAAAAAHY/G0Q0rqaq9Q0/s640/1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
You can customize the default layout as required. In this sample I have used a Datagrid to get my desired layout like below. You need to modify some of the style in App.xaml.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TDxHZc9ssVI/AAAAAAAAAHg/eb6rf0jKAao/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="418" src="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TDxHZc9ssVI/AAAAAAAAAHg/eb6rf0jKAao/s640/2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a href="http://cid-4b03aa8222dc3c5e.office.live.com/self.aspx/Silverlight%204/SLCustomNavigationApp.zip"&gt;Download&lt;/a&gt; the source &lt;a href="http://cid-4b03aa8222dc3c5e.office.live.com/self.aspx/Silverlight%204/SLCustomNavigationApp.zip"&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Check the demo below:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;script src="http://www.usfromdhaka.com/amyo/Silverlight.js" type="text/javascript"&gt;
&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &amp;&amp; sender != 0) {
              appSource = sender.getHost().Source;
            }
            
            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;

            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }

            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;

            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";

            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }

            throw new Error(errMsg);
        }
    
&lt;/script&gt;
    &lt;br /&gt;
&lt;div id="silverlightControlHost" style="height: 500px; width: 100%;"&gt;
&lt;object data="data:application/x-silverlight-2," height="100%" type="application/x-silverlight-2" width="100%"&gt;
    &lt;param name="source" value="http://www.usfromdhaka.com/amyo/ClientBin/SLCustomNavigationApp.xap"/&gt;





    &lt;param name="onError" value="onSilverlightError" /&gt;





    &lt;param name="background" value="white" /&gt;





    &lt;param name="minRuntimeVersion" value="4.0.50401.0" /&gt;





    &lt;param name="autoUpgrade" value="true" /&gt;





    &lt;a href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=4.0.50401.0" style="text-decoration:none"&gt;
      &lt;img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/&gt;
    &lt;/a&gt;
     &lt;/object&gt;&lt;iframe id="_sl_historyFrame" style="border: 0px none; height: 0px; visibility: hidden; width: 0px;"&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8157507145115047217-753009238834022718?l=www.silverlightnext.com' alt='' /&gt;&lt;/div&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-17T21:12:11.204-07:00</app:edited><media:thumbnail url="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TDxHSUJ4WhI/AAAAAAAAAHY/G0Q0rqaq9Q0/s72-c/1.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Reusable Silverlight service project to avoid multiple addition on same WCF services reference</title><link>http://www.silverlightnext.com/2010/07/reusable-silverlight-service-project-to.html</link><author>noreply@blogger.com (Amyo Kabir)</author><pubDate>Thu, 08 Jul 2010 08:59:18 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8157507145115047217.post-1835422444369640994</guid><description>Inspiration of this post: &lt;a href="http://forums.silverlight.net/forums/t/190515.aspx"&gt;http://forums.silverlight.net/forums/t/190515.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
We can create a reusable&amp;nbsp; Silverlight service project so that it can be used by different Silverlight application and service reference update will be restricted on a single place.&lt;br /&gt;
&lt;br /&gt;
Suppose we have two Silverlight application that will use the common service:&lt;br /&gt;
1. &lt;b&gt;SLProject1&lt;/b&gt;&lt;br /&gt;
2. &lt;b&gt;SLProject2&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Lets create a common service project:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
Add new project of type '&lt;b&gt;Silverlight Class Library&lt;/b&gt;' suppose name is &lt;b&gt;MyCommonWCFService &lt;/b&gt;like below:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/_4CD2xPgWKyQ/TDXw1bGeapI/AAAAAAAAAGg/JK3PV5fJs-4/s1600/4.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="459" src="http://3.bp.blogspot.com/_4CD2xPgWKyQ/TDXw1bGeapI/AAAAAAAAAGg/JK3PV5fJs-4/s640/4.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;In the &lt;b&gt;MyCommonWCFService &lt;/b&gt;project add the service reference like below:&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/TDXxAIpCv4I/AAAAAAAAAGo/i4VBABqM7FM/s1600/6.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="530" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/TDXxAIpCv4I/AAAAAAAAAGo/i4VBABqM7FM/s640/6.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Now in your SLProject1 and SLProject2:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
Add &lt;b&gt;MyCommonWCFService &lt;/b&gt;project reference like below:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TDXxRu1D7pI/AAAAAAAAAGw/fGV9QzyzYFY/s1600/7.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="534" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TDXxRu1D7pI/AAAAAAAAAGw/fGV9QzyzYFY/s640/7.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;And also add the reference of System.ServiceModel:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/TDXxZmbkHjI/AAAAAAAAAG4/yVcIzTa5pbA/s1600/8.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="534" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/TDXxZmbkHjI/AAAAAAAAAG4/yVcIzTa5pbA/s640/8.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Now copy the &lt;b&gt;ServiceReferences.ClientConfig&lt;/b&gt; from the &lt;b&gt;MyCommonWCFService &lt;/b&gt;project and add as existing item to the &lt;b&gt;SLProject1 &lt;/b&gt;and &lt;b&gt;SLProject2&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Example solution explorer will be like below:&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TDXxh96tn7I/AAAAAAAAAHA/N_KDE_hFDVA/s1600/9.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="440" src="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TDXxh96tn7I/AAAAAAAAAHA/N_KDE_hFDVA/s640/9.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Suppose we have a WCF service like below:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TDXxq6TFQ0I/AAAAAAAAAHI/oW5ioEXKLE0/s1600/10.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="212" src="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TDXxq6TFQ0I/AAAAAAAAAHI/oW5ioEXKLE0/s640/10.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;u&gt;&lt;b&gt;You can consume the common service client in SLProject1 or SLProject2 like below:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TDXxszTymfI/AAAAAAAAAHQ/RKHKPRZ9shc/s1600/11.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="284" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TDXxszTymfI/AAAAAAAAAHQ/RKHKPRZ9shc/s640/11.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;You can &lt;a href="http://cid-4b03aa8222dc3c5e.office.live.com/self.aspx/Silverlight%204/SLCommonServiceProject.zip"&gt;download&lt;/a&gt; the sample example.&lt;/b&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8157507145115047217-1835422444369640994?l=www.silverlightnext.com' alt='' /&gt;&lt;/div&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-08T08:59:18.263-07:00</app:edited><media:thumbnail url="http://3.bp.blogspot.com/_4CD2xPgWKyQ/TDXw1bGeapI/AAAAAAAAAGg/JK3PV5fJs-4/s72-c/4.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Send Email from Silverlight application using WCF service</title><link>http://www.silverlightnext.com/2010/06/send-email-from-silverlight-application.html</link><author>noreply@blogger.com (Amyo Kabir)</author><pubDate>Mon, 28 Jun 2010 23:17:01 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8157507145115047217.post-1511435974369593395</guid><description>Send email from Silverlight application using WCF service which is hosted on a server.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;So, we have 4 main task:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
1. Add Silverlight enabled WCF service into your web application project&lt;br /&gt;
2. Configure SMTP server&lt;br /&gt;
3. Write operation contract in your WCF service which will send email&lt;br /&gt;
4. Consume the WCF service in your Silverlight application and invoke to send email as required&lt;br /&gt;
&lt;br /&gt;
Considering you have created a Silverlight application project with a web 
application project using Visual Studio 2010&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Add Silverlight enabled WCF service:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
Now create a folder called Service in your WEB application project and add new item&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TCiH0kBUQoI/AAAAAAAAAFo/3Zdj1RsbRnY/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TCiH0kBUQoI/AAAAAAAAAFo/3Zdj1RsbRnY/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="360" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TCiH0kBUQoI/AAAAAAAAAFo/3Zdj1RsbRnY/s640/1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Now create a class called SLEmailMessage and make it serializable so that this type can be transfer through WCF service:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TCiH8JSGAvI/AAAAAAAAAFw/tPcl9sAUzPM/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="410" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TCiH8JSGAvI/AAAAAAAAAFw/tPcl9sAUzPM/s640/2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Now add mail settings in your web.config's configuration section:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TCiIB32-_nI/AAAAAAAAAF4/IJqsGtfQD-M/s1600/3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="292" src="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TCiIB32-_nI/AAAAAAAAAF4/IJqsGtfQD-M/s640/3.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Now write the email sending code in your service class (.svc.cs):&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TCiIGckplCI/AAAAAAAAAGA/FxC5OsH2ltw/s1600/4.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TCiIGckplCI/AAAAAAAAAGA/FxC5OsH2ltw/s1600/4.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="426" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TCiIGckplCI/AAAAAAAAAGA/FxC5OsH2ltw/s640/4.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Now in your Silverlight project add the service reference:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/TCiIJb9KnVI/AAAAAAAAAGI/CbzTwjh8I8s/s1600/5.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="476" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/TCiIJb9KnVI/AAAAAAAAAGI/CbzTwjh8I8s/s640/5.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;In your XAML code behind invoke the added service:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/_4CD2xPgWKyQ/TCiIOCUEFqI/AAAAAAAAAGQ/HDoMVWj1A6o/s1600/6.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="484" src="http://3.bp.blogspot.com/_4CD2xPgWKyQ/TCiIOCUEFqI/AAAAAAAAAGQ/HDoMVWj1A6o/s640/6.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can &lt;a href="http://cid-4b03aa8222dc3c5e.office.live.com/self.aspx/Public/SLSentEmail.zip"&gt;download the source&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8157507145115047217-1511435974369593395?l=www.silverlightnext.com' alt='' /&gt;&lt;/div&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-28T23:17:01.378-07:00</app:edited><media:thumbnail url="http://1.bp.blogspot.com/_4CD2xPgWKyQ/TCiH0kBUQoI/AAAAAAAAAFo/3Zdj1RsbRnY/s72-c/1.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">12</thr:total></item><item><title>Silverlight 4 minor update–June 2010</title><link>http://www.silverlightnext.com/2010/06/silverlight-4-minor-updatejune-2010.html</link><author>noreply@blogger.com (Amyo Kabir)</author><pubDate>Fri, 04 Jun 2010 10:21:12 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8157507145115047217.post-628115771690799189</guid><description>Check here for detail update:
 &lt;a href="http://timheuer.com/blog/archive/2010/06/03/silverlight-4-minor-update-june-2010.aspx" title="http://timheuer.com/blog/archive/2010/06/03/silverlight-4-minor-update-june-2010.aspx"&gt;http://timheuer.com/blog/archive/2010/06/03/silverlight-4-minor-update-june-2010.aspx&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Developer may having problem like below: &lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TAkywvTevfI/AAAAAAAAAFg/aRCG4yuAvzQ/s1600/n.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="140" src="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TAkywvTevfI/AAAAAAAAAFg/aRCG4yuAvzQ/s400/n.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Visual Studion 2010 you may get message 'This page requires a more recent version of Silverlight'&lt;br /&gt;
&lt;br /&gt;
This happened because new Silverlight 4 runtime automatically updated but developer runtime is not updated accordingly.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Solution for the Developer:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
*updated developer runtime here: &lt;a href="http://go.microsoft.com/fwlink/?LinkID=188039" target="_blank"&gt;Windows

 developer runtime&lt;/a&gt; or &lt;a href="http://go.microsoft.com/fwlink/?LinkID=188040" target="_blank"&gt;Mac
 developer runtime&lt;/a&gt;. and restart the Visual Studion&lt;br /&gt;
*Change the &lt;object&gt; tag to increment the &lt;em&gt;minRuntimeVersion&lt;/em&gt;
 attribute to the appropriate version (4.0.50524.0).&amp;nbsp;&lt;/object&gt;&lt;br /&gt;
* If you are using the pulgin down link to specific version then change it &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;a href="http://timheuer.com/blog/archive/2010/06/03/silverlight-4-minor-update-june-2010.aspx" title="http://timheuer.com/blog/archive/2010/06/03/silverlight-4-minor-update-june-2010.aspx"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8157507145115047217-628115771690799189?l=www.silverlightnext.com' alt='' /&gt;&lt;/div&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-04T10:21:12.510-07:00</app:edited><media:thumbnail url="http://4.bp.blogspot.com/_4CD2xPgWKyQ/TAkywvTevfI/AAAAAAAAAFg/aRCG4yuAvzQ/s72-c/n.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><enclosure url="http://go.microsoft.com/fwlink/?LinkID=188039" length="8547728" type="application/octet-stream" /><media:content url="http://go.microsoft.com/fwlink/?LinkID=188039" fileSize="8547728" type="application/octet-stream" /><itunes:explicit>no</itunes:explicit><itunes:subtitle>Check here for detail update: http://timheuer.com/blog/archive/2010/06/03/silverlight-4-minor-update-june-2010.aspx Developer may having problem like below: In Visual Studion 2010 you may get message 'This page requires a more recent version of Silverligh</itunes:subtitle><itunes:author>noreply@blogger.com (Amyo Kabir)</itunes:author><itunes:summary>Check here for detail update: http://timheuer.com/blog/archive/2010/06/03/silverlight-4-minor-update-june-2010.aspx Developer may having problem like below: In Visual Studion 2010 you may get message 'This page requires a more recent version of Silverlight' This happened because new Silverlight 4 runtime automatically updated but developer runtime is not updated accordingly. Solution for the Developer: *updated developer runtime here: Windows developer runtime or Mac developer runtime. and restart the Visual Studion *Change the tag to increment the minRuntimeVersion attribute to the appropriate version (4.0.50524.0).&amp;nbsp; * If you are using the pulgin down link to specific version then change it &amp;nbsp; </itunes:summary></item><item><title>Full Text search in Silverlight 4 using WCF RIA service and Entity Framework</title><link>http://www.silverlightnext.com/2010/05/full-text-search-in-silverlight-4-using.html</link><author>noreply@blogger.com (Amyo Kabir)</author><pubDate>Wed, 26 May 2010 09:27:51 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8157507145115047217.post-447632368695439907</guid><description>Check &lt;a href="http://blog.sqlauthority.com/2008/09/05/sql-server-creating-full-text-catalog-and-index/"&gt;here&lt;/a&gt; how to create SQL SERVER – 2008 Full Text Catalog and using Full Text Search.&lt;br /&gt;
&lt;br /&gt;
Get started of WCF RIA and Entity Framework &lt;a href="http://www.silverlight.net/getstarted/riaservices/"&gt;here&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;In this sample I will use the tools below:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
1.&lt;a href="http://www.microsoft.com/visualstudio/en-us/products"&gt;Visual Studio 2010&lt;/a&gt;&lt;br /&gt;
2. &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=902a7539-c4b5-4e54-b4c9-1432daabe1e8&amp;amp;displaylang=en"&gt;Microsoft Silverlight 4 Tools for Visual Studio 2010 &lt;/a&gt;&lt;br /&gt;
3. &lt;a href="http://msftdbprodsamples.codeplex.com/releases/view/45907"&gt;AdventureWorks 2008R2 RTM sample database&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Create Entity Framework domain model (.edmx):&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S_1BKcM9ccI/AAAAAAAAAEY/5sxvU6WEp3o/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="460" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S_1BKcM9ccI/AAAAAAAAAEY/5sxvU6WEp3o/s640/1.png" width="640" /&gt;&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;Generate model from database:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/S_1BTc0oZHI/AAAAAAAAAEg/pea-jBN-gCs/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/S_1BTc0oZHI/AAAAAAAAAEg/pea-jBN-gCs/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="584" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/S_1BTc0oZHI/AAAAAAAAAEg/pea-jBN-gCs/s640/2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;Select Employee table:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/S_1BpgVHT6I/AAAAAAAAAEo/LrDMLO-Jgvo/s1600/3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="584" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/S_1BpgVHT6I/AAAAAAAAAEo/LrDMLO-Jgvo/s640/3.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/_4CD2xPgWKyQ/S_1B0_1d8QI/AAAAAAAAAEw/2Kk8OBiKZng/s1600/4.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="548" src="http://4.bp.blogspot.com/_4CD2xPgWKyQ/S_1B0_1d8QI/AAAAAAAAAEw/2Kk8OBiKZng/s640/4.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Create domain service class selecting Employee entity:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S_1CCtjYjjI/AAAAAAAAAE4/FhMMle2WPik/s1600/5.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="460" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S_1CCtjYjjI/AAAAAAAAAE4/FhMMle2WPik/s640/5.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S_1COEAS-OI/AAAAAAAAAFA/TWyB3eHMC1U/s1600/6.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="640" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S_1COEAS-OI/AAAAAAAAAFA/TWyB3eHMC1U/s640/6.png" width="524" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Now open the domain service class write FullTextSearchEmployee method:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S_1C0zyHrzI/AAAAAAAAAFI/tErBdJsY_pI/s1600/7.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="288" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S_1C0zyHrzI/AAAAAAAAAFI/tErBdJsY_pI/s640/7.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
Now build project.&lt;br /&gt;
Now in Silverlight application open the page in design view and open DataSource tab.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/_4CD2xPgWKyQ/S_1DZBJDU8I/AAAAAAAAAFQ/bOeiiepo-4E/s1600/8.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="364" src="http://3.bp.blogspot.com/_4CD2xPgWKyQ/S_1DZBJDU8I/AAAAAAAAAFQ/bOeiiepo-4E/s640/8.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Drag the Employee into the page:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/_4CD2xPgWKyQ/S_1DrYOfqaI/AAAAAAAAAFY/Rn5Ae1cKlXI/s1600/9.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="340" src="http://4.bp.blogspot.com/_4CD2xPgWKyQ/S_1DrYOfqaI/AAAAAAAAAFY/Rn5Ae1cKlXI/s640/9.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Page will be generated like above.&lt;br /&gt;
Try it now! &lt;br /&gt;
This is the magic of VS2010 , WCF RIA service v1 with Entity Framework and MSSQL server 2008 full text search in Silverlight 4.0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8157507145115047217-447632368695439907?l=www.silverlightnext.com' alt='' /&gt;&lt;/div&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-26T09:27:51.011-07:00</app:edited><media:thumbnail url="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S_1BKcM9ccI/AAAAAAAAAEY/5sxvU6WEp3o/s72-c/1.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>Silverlight 4 modify style runtime - using new BasedOn property of Style</title><link>http://www.silverlightnext.com/2010/05/silverlight-4-modify-style-runtime.html</link><author>noreply@blogger.com (Amyo Kabir)</author><pubDate>Sat, 15 May 2010 10:08:18 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8157507145115047217.post-723086711456190945</guid><description>You can create a new style based on a specific Style.&lt;br /&gt;
Setter of your new style has priority high. Other setter will be merged from the basedOn style.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Suppose you have style like below: &lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/_4CD2xPgWKyQ/S-6_HHeiccI/AAAAAAAAADo/ON3TSt1owVA/s1600/style1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="436" src="http://3.bp.blogspot.com/_4CD2xPgWKyQ/S-6_HHeiccI/AAAAAAAAADo/ON3TSt1owVA/s640/style1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
And applied like below:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S-6_sD_RehI/AAAAAAAAADw/05VOol7HDsE/s1600/default.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="195" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S-6_sD_RehI/AAAAAAAAADw/05VOol7HDsE/s640/default.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Default Output:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/_4CD2xPgWKyQ/S-7AFVm6EoI/AAAAAAAAAD4/1Y7BHUlLyCc/s1600/output1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="344" src="http://4.bp.blogspot.com/_4CD2xPgWKyQ/S-7AFVm6EoI/AAAAAAAAAD4/1Y7BHUlLyCc/s640/output1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Now in the Button event we can modify the style like below:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S-7AfaEk8xI/AAAAAAAAAEA/-GDrLrLw9CQ/s1600/modify.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="290" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S-7AfaEk8xI/AAAAAAAAAEA/-GDrLrLw9CQ/s640/modify.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Suppose you have another boder style and want to use some setter.&lt;br /&gt;
Suppose the Style2 like below:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/_4CD2xPgWKyQ/S-7B4r3kPYI/AAAAAAAAAEI/XXfFe4djw50/s1600/style2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="314" src="http://3.bp.blogspot.com/_4CD2xPgWKyQ/S-7B4r3kPYI/AAAAAAAAAEI/XXfFe4djw50/s640/style2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Now in the button event you can merge two style like below:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/S-7CNI7czFI/AAAAAAAAAEQ/-1oMC9ji-_4/s1600/2010-05-15_2127.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="358" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/S-7CNI7czFI/AAAAAAAAAEQ/-1oMC9ji-_4/s640/2010-05-15_2127.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Check demo below:&lt;br /&gt;
&lt;script src="http://www.usfromdhaka.com/amyo/Silverlight.js" type="text/javascript"&gt;
&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &amp;&amp; sender != 0) {
              appSource = sender.getHost().Source;
            }
            
            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;

            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }

            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;

            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";

            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }

            throw new Error(errMsg);
        }
    
&lt;/script&gt;
    &lt;br /&gt;
&lt;div id="silverlightControlHost" style="height: 200px; width: 100%;"&gt;
&lt;object data="data:application/x-silverlight-2," height="100%" type="application/x-silverlight-2" width="100%"&gt;
    &lt;param name="source" value="http://www.usfromdhaka.com/amyo/ClientBin/SL4Forum.xap"/&gt;

    &lt;param name="onError" value="onSilverlightError" /&gt;

    &lt;param name="background" value="white" /&gt;

    &lt;param name="minRuntimeVersion" value="4.0.50401.0" /&gt;

    &lt;param name="autoUpgrade" value="true" /&gt;

    &lt;a href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=4.0.50401.0" style="text-decoration:none"&gt;
      &lt;img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/&gt;
    &lt;/a&gt;
     &lt;/object&gt;&lt;iframe id="_sl_historyFrame" style="border: 0px none; height: 0px; visibility: hidden; width: 0px;"&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8157507145115047217-723086711456190945?l=www.silverlightnext.com' alt='' /&gt;&lt;/div&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-15T10:08:18.041-07:00</app:edited><media:thumbnail url="http://3.bp.blogspot.com/_4CD2xPgWKyQ/S-6_HHeiccI/AAAAAAAAADo/ON3TSt1owVA/s72-c/style1.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>Adjust XAML Formatting as required in Visual Studio 2008 / 2010</title><link>http://www.silverlightnext.com/2010/05/adjust-xaml-formatting-as-required-in.html</link><author>noreply@blogger.com (Amyo Kabir)</author><pubDate>Fri, 07 May 2010 08:48:24 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8157507145115047217.post-2454098963242736654</guid><description>You will find the xaml editor options in Visual Studio 2008 /2010 like below: &lt;br /&gt;
&lt;b&gt;Tools &amp;gt;&amp;gt; Options &amp;gt;&amp;gt;Text Editor &amp;gt;&amp;gt;XAML&amp;gt;&amp;gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Some of the options like below: &lt;/b&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S-Qwd8_cN_I/AAAAAAAAACI/swWf3Mvkn2U/s1600/Attribute_Spacing.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="379" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S-Qwd8_cN_I/AAAAAAAAACI/swWf3Mvkn2U/s640/Attribute_Spacing.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Output&lt;/b&gt;&lt;/u&gt;:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S-Qx3n5pwNI/AAAAAAAAACQ/hIxuGooiDDA/s1600/each_attribute_separate_line.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="348" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S-Qx3n5pwNI/AAAAAAAAACQ/hIxuGooiDDA/s640/each_attribute_separate_line.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/_4CD2xPgWKyQ/S-QyR5YuUxI/AAAAAAAAACY/JC9zZmSkY4o/s1600/position_first_attribute_on_same_line.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="380" src="http://4.bp.blogspot.com/_4CD2xPgWKyQ/S-QyR5YuUxI/AAAAAAAAACY/JC9zZmSkY4o/s640/position_first_attribute_on_same_line.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Output:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/_4CD2xPgWKyQ/S-QyjeFB7bI/AAAAAAAAACg/Pl1RRWwZ5cY/s1600/2010-05-07_2051.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="307" src="http://1.bp.blogspot.com/_4CD2xPgWKyQ/S-QyjeFB7bI/AAAAAAAAACg/Pl1RRWwZ5cY/s640/2010-05-07_2051.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/_4CD2xPgWKyQ/S-Qy9rQy3QI/AAAAAAAAACo/TN86soj-kJI/s1600/2010-05-07_2104.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="379" src="http://3.bp.blogspot.com/_4CD2xPgWKyQ/S-Qy9rQy3QI/AAAAAAAAACo/TN86soj-kJI/s640/2010-05-07_2104.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Output:&lt;/b&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/_4CD2xPgWKyQ/S-QzRJ64GFI/AAAAAAAAACw/wPJhT_sk9_0/s1600/2010-05-07_2105.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="107" src="http://3.bp.blogspot.com/_4CD2xPgWKyQ/S-QzRJ64GFI/AAAAAAAAACw/wPJhT_sk9_0/s640/2010-05-07_2105.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/_4CD2xPgWKyQ/S-QziX-jj2I/AAAAAAAAAC4/Fggu-3ThwYs/s1600/2010-05-07_2057.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="379" src="http://3.bp.blogspot.com/_4CD2xPgWKyQ/S-QziX-jj2I/AAAAAAAAAC4/Fggu-3ThwYs/s640/2010-05-07_2057.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Output:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S-Qzw-QEnII/AAAAAAAAADA/vf1JMYJM5BU/s1600/2010-05-07_2058.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="179" src="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S-Qzw-QEnII/AAAAAAAAADA/vf1JMYJM5BU/s640/2010-05-07_2058.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8157507145115047217-2454098963242736654?l=www.silverlightnext.com' alt='' /&gt;&lt;/div&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-07T08:48:24.046-07:00</app:edited><media:thumbnail url="http://2.bp.blogspot.com/_4CD2xPgWKyQ/S-Qwd8_cN_I/AAAAAAAAACI/swWf3Mvkn2U/s72-c/Attribute_Spacing.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>TIPS: Get actual width and height of an Image</title><link>http://www.silverlightnext.com/2010/04/tips-get-actual-width-and-height-of.html</link><category>Silverlight</category><author>noreply@blogger.com (Amyo Kabir)</author><pubDate>Tue, 27 Jul 2010 02:34:03 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8157507145115047217.post-8928096890348032950</guid><description>You can use &lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.image.imageopened%28VS.95%29.aspx" title="ImageOpened event"&gt;ImageOpened even&lt;/a&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.image.imageopened%28VS.95%29.aspx" title="ImageOpened event"&gt;t&lt;/a&gt; to get actual width and height of an Image like below:&lt;br /&gt;
&lt;br/&gt;

&lt;pre class="brush:javascript"&gt;
        MyImage.ImageOpened += new EventHandler&lt;RoutedEventArgs&gt;(Image_ImageOpened);
    }
    void Image_ImageOpened(object sender, RoutedEventArgs e)
    {
        Image img = (Image)sender;
        BitmapImage bi = (BitmapImage)img.Source;
        double width = bi.PixelWidth;
        double height = bi.PixelHeight;
    }
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8157507145115047217-8928096890348032950?l=www.silverlightnext.com' alt='' /&gt;&lt;/div&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-27T02:34:03.314-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total></item><media:rating>nonadult</media:rating></channel></rss>

