<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Michael Sync &#187; Silverlight</title>
	<atom:link href="http://michaelsync.net/category/silverlight/feed" rel="self" type="application/rss+xml" />
	<link>http://michaelsync.net</link>
	<description>Sharing our knowledge</description>
	<lastBuildDate>Mon, 01 Mar 2010 16:39:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SG SLUG &#8211; What&#8217;s new in Silverlight 4? Presentation and Demo</title>
		<link>http://michaelsync.net/2010/02/12/sg-slug-whats-new-in-silverlight-4-presentation-and-demo</link>
		<comments>http://michaelsync.net/2010/02/12/sg-slug-whats-new-in-silverlight-4-presentation-and-demo#comments</comments>
		<pubDate>Fri, 12 Feb 2010 14:54:49 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1551</guid>
		<description><![CDATA[We had our very first meeting of Singapore Silverlight User Group on last Wednesday at Hackerspace run by Justin Lee. (Thanks, Justin) We got the pizza sponsor from Microsoft Singapore. Jocelyn Mae Villaraza, Jonathan Wong, Alex Goh, Chewy Chong and Chris Ismael from Microsoft came and supported our event. A few people from community attended our [...]]]></description>
			<content:encoded><![CDATA[<p>We had our <a href="http://sgsug.org/2010/01/27/singapore-silverlight-user-group-meetup/">very first meeting of Singapore Silverlight User Group</a> on last Wednesday at <a href="http://hackerspace.sg/">Hackerspace</a> run by <a href="http://justinlee.sg/">Justin Lee</a>. (Thanks, Justin) We got the pizza sponsor from Microsoft Singapore. Jocelyn Mae Villaraza, Jonathan Wong, Alex Goh, Chewy Chong and Chris Ismael from Microsoft came and supported our event. A few people from community attended our event as well. You can take a look at our photos in <a href="http://sgsug.org/2010/02/12/singapore-silverlight-user-group-1st-meetup/">this link</a>. I will have next meeting with more speakers in March. Hope to see you again soon.. Thank you all for participating in our event.</p>
<p>Here is the presentation and demo that I created for that event.</p>
<p><strong>Presentation Download</strong> ~</p>
<ul>
<li><a href="http://michaelsync.net/demo/WhatsnewinSilverlight4.pptx">What’s new in Silverlight 4.pptx (2.05 MB)</a></li>
<li><a href="http://michaelsync.net/demo/Whatsnewin_Silverlight_4(Office_2003Format).ppt">What’s new in Silverlight 4 (Office 2003 Format).ppt</a> (2.20 MB)</li>
<li><a href="http://sgsug.org/2010/02/12/singapore-silverlight-user-group-1st-meetup/">Event Photos</a></li>
</ul>
<p><img class="aligncenter size-full wp-image-1553" title="Screenshot of SL 4" src="http://michaelsync.net/wp-content/uploads/2010/02/Screenshot-of-SL-4.png" alt="" width="504" height="315" /></p>
<p><strong>Demo Downloads : <a href="http://michaelsync.net/demo/SL 4 - demo.zip">demo.zip</a> </strong></p>
<p><strong> 1. Drag and Drop and Print</strong></p>
<p>I created very simple page that shows the drag and drop feature. And I also included the <a href="http://www.wintellect.com/CS/blogs/jprosise/archive/2009/11/26/silverlight-4-s-new-drag-and-drop-support.aspx">Jeff Prosise&#8217;s SILVERLIGHT 4&#8242;S NEW DRAG-AND-DROP SUPPORT demo</a>.</p>
<p><img class="aligncenter size-full wp-image-1554" title="Drag and Drop Demo" src="http://michaelsync.net/wp-content/uploads/2010/02/Drag-and-Drop-Demo.png" alt="" width="504" height="315" /></p>
<p><strong>2. Rich Text Area : John Papa</strong><br />
<img class="aligncenter size-full wp-image-1555" title="Rich Text Area" src="http://michaelsync.net/wp-content/uploads/2010/02/Rich-Text-Area.png" alt="" width="524" height="451" /></p>
<p><strong>3.WebCam &#8211; Photobooth : Karen Corby</strong></p>
<p><img class="aligncenter size-full wp-image-1556" title="WebCam" src="http://michaelsync.net/wp-content/uploads/2010/02/WebCam.jpg" alt="" width="232" height="240" /></p>
<p><strong>4. Validation</strong></p>
<p><img class="aligncenter size-full wp-image-1557" title="IDataErrorInfo" src="http://michaelsync.net/wp-content/uploads/2010/02/IDataErrorInfo.png" alt="" width="404" height="237" /></p>
<p><strong>5. MultiTouchPuzzle : Scott Guthrie</strong></p>
<p><img class="aligncenter size-full wp-image-1558" title="HTML Host" src="http://michaelsync.net/wp-content/uploads/2010/02/HTML-Host.png" alt="" width="507" height="310" /><br />
<img class="aligncenter size-full wp-image-1559" title="HTML Host 2" src="http://michaelsync.net/wp-content/uploads/2010/02/HTML-Host-2.png" alt="" width="507" height="310" /></p>
<p><strong>6. NotificationAPI_CS : Tim Heuer</strong><br />
<img class="aligncenter size-full wp-image-1560" title="Toast" src="http://michaelsync.net/wp-content/uploads/2010/02/Toast.png" alt="" width="368" height="217" /></p>
<p><strong>7. Full Trust &#8211; COM</strong></p>
<p><img class="aligncenter size-full wp-image-1561" title="Full Trust App" src="http://michaelsync.net/wp-content/uploads/2010/02/Full-Trust-App.png" alt="" width="539" height="272" /></p>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2010/02/12/sg-slug-whats-new-in-silverlight-4-presentation-and-demo/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 RC Released</title>
		<link>http://michaelsync.net/2010/02/09/visual-studio-2010-rc-released</link>
		<comments>http://michaelsync.net/2010/02/09/visual-studio-2010-rc-released#comments</comments>
		<pubDate>Tue, 09 Feb 2010 08:14:53 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1548</guid>
		<description><![CDATA[If you have MSDN Subscription, you can download VS 2010 RC now.

Notes 
1. Important to note is that VS RC will not support Silverlight 4 Beta so if you are working on Silverlight 4 development then you should keep VS 2010 Beta only. 
2. I&#8217;m not able to install it in my office machine. The [...]]]></description>
			<content:encoded><![CDATA[<p>If you have <a href="http://msdn.microsoft.com/en-us/subscriptions/default.aspx">MSDN Subscription</a>, you can download VS 2010 RC now.</p>
<p><img class="aligncenter size-full wp-image-1549" title="Visual Studio 2010 Ultimate RC" src="http://michaelsync.net/wp-content/uploads/2010/02/Visual-Studio-2010-Ultimate-RC.jpg" alt="" width="552" height="386" /></p>
<p>Notes </p>
<p>1. Important to note is that VS RC will not support Silverlight 4 Beta so if you are working on Silverlight 4 development then you should keep VS 2010 Beta only. </p>
<p>2. I&#8217;m not able to install it in my office machine. The installation dialog will be disappeared without any message or error after clicking &#8220;Install&#8221; button. I got this message <strong>&#8220;[02/09/10,15:45:44] vs70uimgr: [2] UI Thread exiting with error code: -2147172341.&#8221;</strong> in dd_error_vs_vstscore_100.txt log file. I don&#8217;t have any solution for that now. I will update you guys once I found something on this issue. </p>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2010/02/09/visual-studio-2010-rc-released/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What do you want in Prism v4.0?</title>
		<link>http://michaelsync.net/2010/02/08/what-do-you-want-in-prism-v4-0</link>
		<comments>http://michaelsync.net/2010/02/08/what-do-you-want-in-prism-v4-0#comments</comments>
		<pubDate>Mon, 08 Feb 2010 12:56:14 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1546</guid>
		<description><![CDATA[Are you a hardcore fan of Prism?
Blaine Wastell, Program Manager of Microsoft Patterns &#38; Practices Client Program, is asking the community to give the feedbacks for Prism 4.0.  You can go to this link and suggest what you wanna see in v4.0..
One interesting thing is that there are quite a few people who like to [...]]]></description>
			<content:encoded><![CDATA[<p>Are you a hardcore fan of Prism?</p>
<p><a href="http://blogs.msdn.com/blaine/">Blaine Wastell</a>, Program Manager of Microsoft Patterns &amp; Practices Client Program, is asking the community to give the feedbacks for Prism 4.0.  You can go to <a href="http://compositewpf.codeplex.com/Thread/View.aspx?ThreadId=80980 ">this link</a> and suggest what you wanna see in v4.0..</p>
<p>One interesting thing is that there are quite a few people who like to use both MEF and Prism in their projects. That&#8217;s good thing.. I&#8217;m also looking for a MEF + Prism guideline.. Glenn, Hope you heard me. :) I&#8217;m still waiting for MEF port of Prism Quick Start as well. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2010/02/08/what-do-you-want-in-prism-v4-0/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Moonlight 3.0 Preview 1</title>
		<link>http://michaelsync.net/2010/02/08/moonlight-3-0-preview-1</link>
		<comments>http://michaelsync.net/2010/02/08/moonlight-3-0-preview-1#comments</comments>
		<pubDate>Mon, 08 Feb 2010 11:40:18 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1542</guid>
		<description><![CDATA[It might be a bit late but still, I want to let you guys know that Moonlight 3.0 Preview 1 has been released. You can download it from the link below.
Download : Moonlight 3.0 Alpha

But be careful after installing this plugin. You should only use this plugin on trusted sites (e.g. internal or well-known web [...]]]></description>
			<content:encoded><![CDATA[<p>It might be a bit late but still, I want to let you guys know that Moonlight 3.0 Preview 1 has been released. You can download it from the link below.</p>
<p><strong>Download</strong> : <a href="http://go-mono.com/moonlight/prerelease.aspx">Moonlight 3.0 Alpha</a></p>
<p><img class="aligncenter size-full wp-image-1543" title="Moonlight3" src="http://michaelsync.net/wp-content/uploads/2010/02/Moonlight3.png" alt="" width="478" height="230" /></p>
<p>But be careful after installing this plugin. You should only use this plugin on trusted sites (e.g. internal or well-known web sites) on non-production computers.</p>
<p>You can read more information in this post <a href="http://tirania.org/blog/archive/2010/Feb-03.html">http://tirania.org/blog/archive/2010/Feb-03.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2010/02/08/moonlight-3-0-preview-1/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rules of MVVM??</title>
		<link>http://michaelsync.net/2010/02/03/rules-of-mvvm</link>
		<comments>http://michaelsync.net/2010/02/03/rules-of-mvvm#comments</comments>
		<pubDate>Wed, 03 Feb 2010 16:50:43 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1531</guid>
		<description><![CDATA[UPDATE #2: 
There is very active discussion about MVVM in WPF Disciples User Group. If you are interested then please read all posts and get invoked in discussion. Here is the link. Update: Here is another one.
As I had a MVVM session at my office, I was re-reading a few articles about MVVM. We have [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE #2: </strong></p>
<blockquote><p>There is very active discussion about MVVM in WPF Disciples User Group. If you are interested then please read all posts and get invoked in discussion. <a href="http://groups.google.com/group/wpf-disciples/browse_thread/thread/32adf5457bb1f004/efb6541d04e7f317">Here is the link</a>. Update: <a href="http://groups.google.com/group/wpf-disciples/browse_thread/thread/7588c66f21fb82af">Here</a> is another one.</p></blockquote>
<p>As I had a <a href="http://michaelsync.net/2010/02/03/my-wpf-mvvm-session-at-consistel">MVVM session at my office</a>, I was re-reading a few articles about MVVM. We have very interesting discussion about MVVM in <a href="http://groups.google.com/group/wpf-disciples/">WPF Disciples User Group</a> as well. You can read that post from <a href="http://groups.google.com/group/wpf-disciples/browse_thread/thread/32e3756952f7a7e8#">here</a>.</p>
<p>Someone in Silverlight Forum (<a href="http://forums.silverlight.net/forums/t/159237.aspx">link</a>) posted that ~</p>
<blockquote><p>&#8220;There are currently three main areas of criticism regarding the MVVM pattern. The first is that MVVM currently lacks standardization from Microsoft both in implementation and in toolsets. For example, the community has some lack of clarity about where and whether to implement View logic in the View layer or the ViewModel. Given that the MVVM pattern is still relatively new, and that new tool-sets, walkthroughs, or patterns, such as Onyx, Prism, the Microsoft WPF Toolkit, Crack.net, Caliburn and MVVM Light Toolkit are being released, this problem may be solved over time. Microsoft has announced in discussion boards that the MVVM template pattern will be released in Visual Studio 2010.</p>
<p>The second comes from MVVM creator John Gossman himself, who points out that the overhead in implementing MVVM is “overkill” for simple UI operations. He also states that for larger applications, generalizing the View layer becomes more difficult. Moreover, he illustrates that data binding, if not managed well, can result in a considerable excess of metadata in an application. Given these limitations, MVVM may have a practical minimum and maximum size for the type of application it can support, suggesting it may not perform well with large enterprise applications.</p>
<p>The third is that the exercise in creating large numbers of data bindings to the ViewModel results in duplicate code and maintenance problems. Additionally, because of the nature of the semantics of data bindings, critics suggest that the ViewModel does not directly describe the View.&#8221;</p></blockquote>
<p>So, I was thinking it would be great if John and our WPF/Silverlight community can define some simple and obvious rules for MVVM pattern.I understand that there are a lot of way to implement MVVM but at least, there are some obvious rules that everyone can follow so everyone has same understanding about that pattern.</p>
<p>Here are some of my thoughts about MVVM.</p>
<p><strong>Why MVVM?</strong></p>
<ul>
<li>Testabiltiy ( ViewModel is easier to unit test than code-behind or event driven code)</li>
<li>Clear seperation between UX designer and developer</li>
<li>Increases the &#8220;Blendability&#8221; of your view</li>
<li>Model never needs to be changed to support changes to the view</li>
<li>ViewModel rarely needs to be changed to support changes to the view</li>
<li>No duplicated code to update views</li>
</ul>
<p><strong> Do and Don&#8217;t in View</strong></p>
<ul>
<li>shouldn&#8217;t contain any logic that you want to test : As Glenn said that MVVM is not code counting exercise, we can write code in code-behind. But you should never write any logic that you want to test. For example: If user select a country then you want to display the list of states or city in your view. This is the business requirement so you should have unit test to test this logic. So, you shouldn&#8217;t write it in code-behind.</li>
<li>can be a control or Data Template</li>
<li>Keep the view as simple as possible. : We can still use Data Trigger or Value Converter or Visual State or Blend Behivor in XAML with care.</li>
<li>use attached property if something is not bindable :</li>
</ul>
<p><strong> Do and Don&#8217;t in ViewModel</strong></p>
<ul>
<li>Connector between View and Model</li>
<li>Keep View State, Value Conversion : (You can create the data structure that you want to display in ViewModel instead of using ValueConverter. For example: You need to show the Name instead of First Name and Last name. Your Model can have First Name and Last Name but You can create Name property in ViewModel. )</li>
<li>No strong or weak (via Interface) reference of View</li>
<li>Make VM as testable as possible (e.g. no call to Singleton class)</li>
<li>No Control related Stuff in VM ( Because if you are changing the view then you will have to change VM as well. )</li>
</ul>
<p><strong> Model</strong></p>
<ul>
<li>can be Data Model, DTO, POCO, auto-generated proxy of domain class and UI Model based on how you want to have the separation between Domain Service and Presentation Layer</li>
<li>No reference to ViewModel</li>
</ul>
<p>What do you think about that? Feel free to let me know if you have any comment or suggestion..  Thanks.</p>
<p><strong>UPDATE: </strong></p>
<p>This is the open post. I will keep on updating it based on the feedback. I&#8217;m trying to discuss about those rules in <a href="http://groups.google.com/group/wpf-disciples/">WPF Disciples User Group</a>. I understand that there are a few people who don&#8217;t want to get invoked in this kinda discussion because it can turn into a fight. Anyway, I will try to discuss with people nicely. :) I will get the feedback several groups like SL MVP/Insiders group, Stackoverflow, Codeproject and etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2010/02/03/rules-of-mvvm/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>3 new websites for Silverlight Community</title>
		<link>http://michaelsync.net/2010/01/30/3-new-websites-for-silverlight-community</link>
		<comments>http://michaelsync.net/2010/01/30/3-new-websites-for-silverlight-community#comments</comments>
		<pubDate>Sun, 31 Jan 2010 05:34:32 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1518</guid>
		<description><![CDATA[Hi Everyone, I hope you all are doing well. I like to introduce new 3 websites that I created since last year.
Silverlight MVP and Insiders Web Site
URL: http://wsinsiders.com

This site is where you can find all informations about Silverlight MVP and WPF/Silverlight Insiders. You can also read the series of Silverlight tutorials written by Silverlight MVPs and [...]]]></description>
			<content:encoded><![CDATA[<p>Hi Everyone, I hope you all are doing well. I like to introduce new 3 websites that I created since last year.</p>
<h1><strong>Silverlight MVP and Insiders Web Site</strong></h1>
<p>URL: <a href="http://wsinsiders.com/">http://wsinsiders.com</a></p>
<p><span style="color: #551a8b; -webkit-text-decorations-in-effect: underline;"><img class="aligncenter size-full wp-image-1519" style="display: block; margin-left: auto; margin-right: auto; border: 0px initial initial;" title="wsinsiders" src="http://michaelsync.net/wp-content/uploads/2010/01/wsinsiders.png" alt="" width="448" height="269" /></span></p>
<p>This site is where you can find all informations about <a href="http://wsinsiders.com/the-silverlight-mvp/">Silverlight MVP</a> and <a href="http://wsinsiders.com/the-insiders/">WPF/Silverlight Insiders</a>. You can also read the series of Silverlight tutorials written by Silverlight MVPs and Insiders. <a href="http://wsinsiders.com/2010/01/29/silverlight-tutorials-for-beginners/">Silverlight Tutorials for Beginners</a> is the first series of our tutorials. We are planning to write more tutorials in that site as well. Here is the list of tutorials that we have in our mind.</p>
<div id="_mcePaste">
<ul>
<li><strong>Tutorials for Silverlight Business Application Development</strong> &#8211; we can write about localization, validation, services. performances, pattern, Prism or MEF</li>
<li><strong>Tutorials for Silverlight Control Development</strong> : We can read the source code of Silverlight Toolkit and can write something like Silverlight Toolkit Internal.</li>
<li><strong>Tutorials for Silverlight Media or Game Development</strong> : Pixel Shader or 3D or Effect or Best Practice for video/audio streaming</li>
<li><strong>Tutorials for “Designers/Expression Blend</strong> : I think it&#8217;s very important. the resources for designer are very less. there are a lot of designers who like to learn about how to design theme or XAML or Blend.. We can write about how to create a Mac-style theme, Glassy theme or etc.  Note: The old name of that tutorial was &#8220;Tutorials for Silverlight/XAML Designer&#8221;. Based on Michael Washington&#8217;s suggested, it has been re-named.</li>
<li><strong>Tips/Trick</strong> : How to add the grouping feature, Excel-like Filering in Datagrid,</li>
<li><strong>Tutorials for Silverlight Integration</strong> : This is where we can put ‘Silverlight and SharePoint” and “Silverlight and DotNetNuke” Note: Suggested by Michael Washington.</li>
</ul>
</div>
<p>Please let me know if you like to contribute your tutorials as well.</p>
<p>Let me tell you a bit about the history of this site. I created this website on Jan 20, 2009. By the time when I was creating this site, there was no MVP award for Silverlight so there was no Silverlight MVP at that time. We had only WPF/Silverlight Insiders and we wanted to create one website similiar to <a href="http://aspinsiders.com/default.aspx">ASPInsiders website</a>. I wanted to register SilverlightInsiders.com but that domain was not available so I registered <a href="http://wsinsiders.com/">http://wsinsiders.com/</a> and started collecting all information about Insiders. Collecting Insiders information is kinda hard because I don&#8217;t have any latest list of Insiders and there are a few people who don&#8217;t have any blog or BIO or photo. Once I have collected the information about MVP and Insiders, I started planning to write the tutorials with a few MVPs. <a href="http://geekswithblogs.net/braulio/Default.aspx">Braulio Diez Botella</a>,  <a href="http://blogs.microsoft.co.il/blogs/alex_golesh/">Alexander Golesh</a>,  <a href="http://emil.silverlightshow.net/">Emil Stoychev</a>,  <a href="http://www.ingebrigtsen.info/">Einar Ingebrigtsen</a> and <a href="http://daron.yondem.com/">Daron Yöndem</a>.  <a href="http://aimeegurl.com/">Jocelyn Mae Villaraza</a> from Microsoft Singapore helped us to review those tutorials. It took me around 1 years to finish this website. Anyway, I&#8217;m glad that we finally make it.</p>
<p>Please feel free to let me know if you have any suggestion or comment for that site.</p>
<h1>Open Source Software in Silverlight</h1>
<p>URL : <a href="http://silverlight-source.net/">http://silverlight-source.net/</a></p>
<p><a href="http://silverlight-source.net/"><img class="aligncenter size-full wp-image-1521" title="silverlight-source.net" src="http://michaelsync.net/wp-content/uploads/2010/01/silverlight-source.net_.png" alt="" width="448" height="269" /></a></p>
<p>I created this website based on one of my favorite website called <a href="http://csharp-source.net/">Open Source Software in C#</a>. There are a lot of open source Silverlight projects. The problem is that all projects are not mature or active so I was thinking it would be so useful for Silverlight community if we have a website that have all information about  active, mature and awesome Silverlight open source projects. You can also suggest me the project via this page <a href="http://silverlight-source.net/suggest-project/">http://silverlight-source.net/suggest-project/</a>.</p>
<h1>Singapore Silverlight User Group</h1>
<p>URL : <a href="http://sgsug.org/">http://sgsug.org/</a></p>
<p><a href="http://sgsug.org/"><img class="aligncenter size-full wp-image-1523" title="sgsug" src="http://michaelsync.net/wp-content/uploads/2010/01/sgsug.png" alt="" width="448" height="269" /></a></p>
<p>This is the official website for Singapore Silverlight User Group. Me and Justin Lee are running this group. We are gonna have <a href="http://sgsug.org/2010/01/27/singapore-silverlight-user-group-meetup/">our first meetup on 10th Feb, 2010</a>. If you are in Singapore, please come to our meetup. It&#8217;s just a casual gathering. You can wear anything you want to come there.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2010/01/30/3-new-websites-for-silverlight-community/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Prism version 2.1 released</title>
		<link>http://michaelsync.net/2009/11/02/prism-version-2-1-released</link>
		<comments>http://michaelsync.net/2009/11/02/prism-version-2-1-released#comments</comments>
		<pubDate>Tue, 03 Nov 2009 02:56:26 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1512</guid>
		<description><![CDATA[Great!! We got new version of Prism. You can go and get the latest from this link. Good thing about this release is that they have fixed the Delegate Memory Leak issue (Ref:Memory Leak caused by DelegateCommand.CanExecuteChanged Event) by using WeakEvent pattern. Another good thing is that Prism now supports Silverlight 3. Thanks a lot, [...]]]></description>
			<content:encoded><![CDATA[<p>Great!! We got new version of Prism. You can go and get the latest from <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=387c7a59-b217-4318-ad1b-cbc2ea453f40">this link</a>. Good thing about this release is that they have fixed the <strong>Delegate Memory Leak</strong> issue (<a href="http://compositewpf.codeplex.com/WorkItem/View.aspx?WorkItemId=4065">Ref:Memory Leak caused by DelegateCommand.CanExecuteChanged Event</a>) by using <a href="http://msdn.microsoft.com/en-us/library/aa970850.aspx">WeakEvent pattern</a>. Another good thing is that Prism now supports <a href="http://silverlight.net/getstarted/silverlight3/">Silverlight 3</a>. Thanks a lot, Prism team.. :)</p>
<p>Please take a look at the changes in this page. <a href="http://msdn.microsoft.com/en-us/library/ee712881.aspx">http://msdn.microsoft.com/en-us/library/ee712881.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2009/11/02/prism-version-2-1-released/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>An Early Look at Silverlight Model-View-ViewModel Toolkit 1</title>
		<link>http://michaelsync.net/2009/06/14/an-early-look-at-silverlight-model-view-viewmodel-toolkit-1</link>
		<comments>http://michaelsync.net/2009/06/14/an-early-look-at-silverlight-model-view-viewmodel-toolkit-1#comments</comments>
		<pubDate>Sun, 14 Jun 2009 11:33:28 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1433</guid>
		<description><![CDATA[Introduction
This post is just an early look of upcoming Silverlight Model-View-ViewModel Toolkit. I know that this is very early state but I&#8217;m writing about this here because I would like to get the feedbacks from the community so that I can prioritize the plans based on what the community want. If you are a fan [...]]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>This post is just an early look of upcoming Silverlight Model-View-ViewModel Toolkit. I know that this is very early state but I&#8217;m writing about this here because I would like to get the feedbacks from the community so that I can prioritize the plans based on what the community want. If you are a fan of <a href="http://wpf.codeplex.com/Wiki/View.aspx?title=WPF%20Model-View-ViewModel%20Toolkit" target="_blank">WPF MVVM Toolkit</a> then you will probably like it.</p>
<p style="text-align: center;"><img style="display: block; margin-left: auto; margin-right: auto; border: 0px initial initial;" title="Silverlight MVVM Toolkit" src="http://michaelsync.net/wp-content/uploads/2009/06/Silverlight-MVVM-Toolkit.jpg" alt="Silverlight MVVM Toolkit" width="489" height="48" /></p>
<p><strong>Download :</strong> <a href="http://michaelsync.net/demo/SilverlightModelViewApplication.zip">SilverlightModelViewApplication.zip (15 KB)</a></p>
<h2>Features</h2>
<p>The toolkit includes:</p>
<ul>
<li>A Visual Studio 2008 Project Template</li>
<li>Silverlight Command Implementation</li>
<li>ViewModelBase that implements INotifyPropertyChanged interface</li>
</ul>
<h2>What is Silverlight MVVM Toolkit?</h2>
<p>Silverlight MVVM Toolkit is a Visual Studio project template that has some useful pre-written implementations for Silverlight Command and INotifyPropertyChanged interface. The main intention of creating this toolkit is to help developers to develop the MVVM pattern-based Silverlight application quickly.</p>
<p>I&#8217;ve been using this template since a few weeks ago and I found it quite useful because whenever I need to create some samples for my blog or the POC projects for my Office, I always need to create a ViewModal class that implements INotifyPropertyChanged interface and need to add the Prism V2 assembly as a reference in my sample for using DelegateCommand. When I look at WPF MVVM toolkit, I really like it because it saves a lot of my times for copying and pasting the old code from my old sample to new sample. After using WPF MVVM toolkit, I was thinking why not create a project template for Silverlight as well. and now, I did it.</p>
<p>The project template is already attached in this post so you can download and test it in your machine. The msi file for that template is not ready yet but I will show you very simple steps (just two steps only) to make it visible in Project Template Dialog of Visual Studio 2008.</p>
<h2>How to install Silverlight Model-View-ViewModel Toolkit</h2>
<p>Please download the zip file (Don&#8217;t extract it) and close all Visual Studio 2008 instances before following the steps below ~</p>
<p><strong>Step #1:</strong> Copy and paste SilverlightModelViewApplication.zip under this path below</p>
<p>%ProgramFiles%\Microsoft Visual Studio 9.0\<br />
Common7\IDE\ProjectTemplates\CSharp\Silverlight\1033</p>
<ul><img class="alignnone size-full wp-image-1435" title="VS Project Template" src="http://michaelsync.net/wp-content/uploads/2009/06/VS-Project-Template.jpg" alt="VS Project Template" width="476" height="397" /></ul>
<p><strong>Step #2.</strong> Open Visual Studio 2008 Command Prompt and type &#8220;deven /setup&#8221;</p>
<p><img class="alignnone size-full wp-image-1436" title="commandline" src="http://michaelsync.net/wp-content/uploads/2009/06/commandline.jpg" alt="commandline" width="508" height="334" /></p>
<p>Yes. That&#8217;s all for installing new project template for Visual Studio.</p>
<h2><span style="font-weight: normal; font-size: 13px;">Once you have finished registering new project template, you open the Visual Studio 2008 and check &#8220;New Project&#8221; dialog.  Then, you will get new project template &#8220;Silverlight Model View Application&#8221; under Silverlight project type as shown in picture below.</span></h2>
<p><img class="aligncenter size-full wp-image-1437" title="Silverlight MVVM Template in VS" src="http://michaelsync.net/wp-content/uploads/2009/06/Silverlight-MVVM-Template-in-VS.jpg" alt="Silverlight MVVM Template in VS" width="563" height="195" /></p>
<p>Choose that template to create a Silverlight MVVM appliction. Note that linking with ASP.NET project, enabling the RIA service and generating unit-test project are not availble in this template but I will add all of this later.</p>
<p>The structure of Silverlight MVVM project is as below.</p>
<p><img class="aligncenter size-full wp-image-1447" title="Silverlight MVVM Folder Structure" src="http://michaelsync.net/wp-content/uploads/2009/06/Silverlight-MVVM-Folder-Structure.jpg" alt="Silverlight MVVM Folder Structure" width="304" height="250" /></p>
<h2>Commends</h2>
<p>Let&#8217;s talk about classes under Commands.  The Command implementation that I&#8217;m using in this toolkit is from <a href="http://www.codeplex.com/CompositeWPF">CompositeWPF version 2</a>. I know that I can probably roll my own implementation but I&#8217;ve been using Prism for long time and DelegateCommand is working perfectly fine so I dont think that I need to waste my time to do the duplicated things. Please feel free to let me know if you found something that is not supported by DelegateCommand.</p>
<p>Here is the examples for using DelegateCommand.</p>
<p><strong>XAML</strong></p>
<pre class="brush: xml;">

xmlns:cmd=&quot;clr-namespace:SilverlightModelViewApplication4.Commands&quot;
</pre>
<p>Here is how you can use Command Binding and CommandParameter in Silverlight.  ( The earlier implementation of Prism v2 is cmd.Command.Click but Prism team re-named this to Click.Command at drop 9.  You can read <a href="http://compositewpf.codeplex.com/Thread/View.aspx?ThreadId=44824">this post</a> if you like to know why they did the changes)</p>
<pre class="brush: xml;">

&lt;Button
cmd:Click.Command=&quot;{Binding SearchCommand}&quot;
cmd:Click.CommandParameter=&quot;This is a CommandParameter&quot;
/&gt;
</pre>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 2503px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">
<pre class="brush: xml;">&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;position: absolute; left: -10000px; top: 2503px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;&quot;&gt;&lt;Button&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;position: absolute; left: -10000px; top: 2503px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;&quot;&gt;cmd:Click.Command=&quot;{Binding SearchCommand}&quot;&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;position: absolute; left: -10000px; top: 2503px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;&quot;&gt;cmd:Click.CommandParameter=&quot;This is a CommandParameter&quot;&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;position: absolute; left: -10000px; top: 2503px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;&quot;&gt;/&gt;&lt;/div&gt;
&lt;div id=&quot;_mcePaste&quot; style=&quot;position: absolute; left: -10000px; top: 2503px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;&quot;&gt;</pre>
</div>
<p><strong>C#</strong></p>
<pre class="brush: csharp;">

public DelegateCommand&lt;string&gt; SearchCommand { get; set; }

//Construtor
public MainPageViewModel()
{

SearchCommand = new DelegateCommand&lt;string&gt;((arg) =&gt;
{
MessageBox.Show(arg);
});

}
</pre>
<h2>INotifyPropertyChanged implementation</h2>
<p>Some of you might know that I wrote about how to implement INotifyPropertyChanged interface with Expression Tree so you don&#8217;t need to use any magic string in property setter.  If you haven&#8217;t read it yet, please go and read <a href="http://michaelsync.net/2009/04/09/silverlightwpf-implementing-propertychanged-with-expression-tree">this post</a> to get some idea. I implemented the same implementation in ViewModelBase class of this toolkit so you can probably use this feature as below in ViewModel class.</p>
<pre class="brush: csharp;">

//Example: How to use RaisePropertyChanged without having any magic string.

private string name = string.Empty;

public string Name
{
get { return name; }
set {
name = value;
this.RaisePropertyChanged(p =&gt; p.Name);
}
}
</pre>
<h2>Upcoming Features ~</h2>
<ul>
<li>A Project Template Waziard for linking with ASP.NET, enabling RIA Services and generating a Text project that has the references o Silverlight Unit Test Framework and Silverlight Moq</li>
<li>A C# and VB.NET project template that supports all editions (inlcuding express edition) of Visual Studio 2008</li>
<li>Creating a msi installer by using <a href="http://wix.sourceforge.net/">Windows Installer XML (WiX) toolset</a></li>
</ul>
<h2>Questions?</h2>
<p>I have a few questions for you guys.</p>
<ol>
<li>What kind of functionalities do you guys like to see in this toolkit? For example: Extensions/Attached properties, Utilities and etc</li>
<li>Do you think that I should create an installer (msi) for that? OR is it okay to have zip file and register it by youself with two simple steps? I&#8217;m asking you this because in order to create a msi, I will probably need to spend some times for learning <a href="http://wix.sourceforge.net/">Windows Installer XML (WiX) toolset</a>. So, if you guys are okay with two simple steps, I can work on other things first.</li>
</ol>
<p>Feel free to drop a comment if you have any comment or suggestion for this toolkit. If you already have similar things in your mind, please let me know. We can work together to contribute our community. You can also reach me with this email mchlsync AT gmail DOT com.</p>
<p>I will be hosting this project in codeplex.com once it&#8217;s ready.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2009/06/14/an-early-look-at-silverlight-model-view-viewmodel-toolkit-1/feed</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>Silverlight Attached Properties: Binding.UpdateSourceTrigger.PropertyChanged</title>
		<link>http://michaelsync.net/2009/06/10/silverlight-attached-properties-bindingupdatesourcetriggerpropertychanged</link>
		<comments>http://michaelsync.net/2009/06/10/silverlight-attached-properties-bindingupdatesourcetriggerpropertychanged#comments</comments>
		<pubDate>Wed, 10 Jun 2009 07:50:20 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1303</guid>
		<description><![CDATA[Note: It is one of my answers from Silverlight Forum.
Problems
UpdateSourceTrigger is not supported in Silverlight until version 3.o.
Workaround
You will need to set the focus on other controls and re-focus to the control that you are using. For example: You are typing in TextBoxA. You want to have UpdateSourceTrigger support for that textbox. So, what you have [...]]]></description>
			<content:encoded><![CDATA[<p>Note: It is <a href="http://silverlight.net/forums/t/11547.aspx">one</a> of my answers from Silverlight Forum.</p>
<h2>Problems</h2>
<p>UpdateSourceTrigger is not supported in Silverlight until version 3.o.</p>
<h2>Workaround</h2>
<p>You will need to set the focus on other controls and re-focus to the control that you are using. For example: You are typing in TextBoxA. You want to have UpdateSourceTrigger support for that textbox. So, what you have to do is that you need to change the focus on another control (e.g. TextboxB) and re-set the focus on TextboxA while typing.</p>
<p>Yes. you can do it very easily from code-behind. But ( genius? ) people from pattern world don&#8217;t like the idea of using code-behind file (so, creating a code-behind file for each and every xaml in Visual Stuid is a waste? What about changing the default pattern (MVC) to MVVM in Visual Stuido Template? ) Anyway, let me get back to the topic. So, we can probably create an attached property to workaround the UpdateSourceTrigger in Silverlight.</p>
<p><strong>Note: This code is just giving you some idea how you can workaround the issue. You will need to do the modification based on your need. </strong></p>
<p>Let&#8217;s name our attached property aS &#8220;UpdateSourceTriggerHelper&#8221;. We will add some codes for registering the property and getter/setter as below. I will tell you more about OnUpdateSourceTriggerChanged</p>
<pre class="brush: csharp;">

public class UpdateSourceTriggerHelper
{
public static readonly DependencyProperty UpdateSourceTriggerProperty =
DependencyProperty.RegisterAttached(&quot;UpdateSourceTrigger&quot;, typeof(bool), typeof(UpdateSourceTriggerHelper),
new PropertyMetadata(OnUpdateSourceTriggerChanged));

public static bool GetUpdateSourceTrigger(DependencyObject d)
{
return (bool)d.GetValue(UpdateSourceTriggerProperty);
}

public static void SetUpdateSourceTrigger(DependencyObject d, bool value)
{
d.SetValue(UpdateSourceTriggerProperty, value);
}
</pre>
<p>In OnUpdateSourceTriggerChanged method, we are going to add the logic for focusing other controls and re-setting the focus back to the original control. So, we need to walk throught the Visual Tree to get the object of other control. Please take a look at findFocusableControl();</p>
<pre class="brush: csharp;">

private static void OnUpdateSourceTriggerChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
TextBox textBox = d as TextBox;
if ((bool)e.OldValue)
{
textBox.TextChanged -= (s, arg) =&gt; {

};
}
if ((bool)e.NewValue)
{
textBox.TextChanged += (s, arg) =&gt; {
var c = findFocusableControl(textBox);
if (c != null)
{
c.Focus();
}
textBox.Focus();
};
}
}
</pre>
<p>Let&#8217;s take a look at what we did in findFocusableControl(). Based on the control that you are typing, you can get the parent of control by using VisualTreeHelper. But if you want to use this code in production, you will have to modify the code. (For example: if you can&#8217;t find any parent then you will need to find the child element. and you need to check whether that control that you get from Visual Tree Helper is focusable or not. yes. there are a lot of things to do it.)</p>
<pre class="brush: csharp;">

private static Control findFocusableControl(Control control)
{
var ctl = VisualTreeHelper.GetParent(control);
if ((ctl as Control) != null)
{
return ctl as Control;
}
else
{
int childrenCount = VisualTreeHelper.GetChildrenCount(ctl);
for (int i = 0; i &lt; childrenCount; i++)
{
var c = VisualTreeHelper.GetChild(ctl, i) as Control;
if ((c != null) &amp;amp;amp;amp;amp;amp;amp;amp;&amp;amp;amp;amp;amp;amp;amp;amp; (c != control))
{
return c;
}
}
}
return null;
}
}
</pre>
<p>Here is how we can use our attached property to provide PropertyChanged event.</p>
<p><strong>Usage (Example)</strong></p>
<pre class="brush: xml;">

&lt;UserControl x:Class=&quot;UpdateSourceTriggerExtDemo.Page&quot;
xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
xmlns:local=&quot;clr-namespace:UpdateSourceTriggerExtDemo&quot;
Width=&quot;400&quot; Height=&quot;300&quot;&gt;
&lt;Grid x:Name=&quot;LayoutRoot&quot; Background=&quot;White&quot;&gt;
&lt;StackPanel&gt;
&lt;TextBox x:Name=&quot;nameTextbox&quot; Height=&quot;25&quot; Width=&quot;100&quot; Margin=&quot;5&quot; Text=&quot;{Binding Name, Mode=TwoWay}&quot;
local:UpdateSourceTriggerHelper.UpdateSourceTrigger=&quot;True&quot; /&gt;
&lt;TextBox x:Name=&quot;addressTextbox&quot; Height=&quot;25&quot; Width=&quot;100&quot; Margin=&quot;5&quot; Text=&quot;{Binding Address, Mode=TwoWay}&quot;
local:UpdateSourceTriggerHelper.UpdateSourceTrigger=&quot;False&quot; /&gt;
&lt;TextBox x:Name=&quot;phoneTextbox&quot; Height=&quot;25&quot; Width=&quot;100&quot; Margin=&quot;5&quot; Text=&quot;{Binding Phone, Mode=TwoWay}&quot;
/&gt;
&lt;Button Height=&quot;25&quot; Width=&quot;100&quot; Margin=&quot;5&quot; Content=&quot;Save&quot; /&gt;
&lt;/StackPanel&gt;
&lt;/Grid&gt;
&lt;/UserControl&gt;
</pre>
<p>Hope it helps. Feel free to let me know if you have any better solution.. I&#8217;m always open to any suggestion from you guys. Thanks..</p>
<p>Happy Silverlighting!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2009/06/10/silverlight-attached-properties-bindingupdatesourcetriggerpropertychanged/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Be careful when you are naming the Silverlight Class Library!!</title>
		<link>http://michaelsync.net/2009/05/04/did-you-know-silverlight-class-library-cant-be-named-with-resources</link>
		<comments>http://michaelsync.net/2009/05/04/did-you-know-silverlight-class-library-cant-be-named-with-resources#comments</comments>
		<pubDate>Mon, 04 May 2009 09:02:18 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1383</guid>
		<description><![CDATA[Do you know why? because there are some limitations that you can&#8217;t use when you are naming Silverlight Class Library. It happened to us. We named one of our Silverlight Class Libraries with &#8220;.Resources&#8221; postfix. Then, we got a lot of trouble. I&#8217;m not sure whether you guys are aware of this &#8220;by-design&#8221; issue or [...]]]></description>
			<content:encoded><![CDATA[<p>Do you know why? because there are some limitations that you can&#8217;t use when you are naming Silverlight Class Library. It happened to us. We named one of our Silverlight Class Libraries with &#8220;.Resources&#8221; postfix. Then, we got a lot of trouble. I&#8217;m not sure whether you guys are aware of this &#8220;by-design&#8221; issue or not. We got a lot of headaches when we are implementating the localization for WPF and Silverlight project. We have spent around 1 or 2 days just to solve this problem.</p>
<p>Here is the steps to reproduce the issue.</p>
<div>
<ol>
<li>Create Silverlight Application (e.g. SilverlightApplication4 ) with web project attached.  (both Silverlight 2 or Silverlight 3)</li>
<li>Add Silverlight Class Library and named it &#8220;ABCDE.Resources&#8221;  <em>&lt;Note: This is very important.&gt;</em></li>
<li>Add the following method in Class1.
<pre class="brush: csharp;">
public static string Foo(){
return &quot;Foo&quot;;
}
</pre>
</li>
<li>Add &#8221;ABCDE.Resources&#8221; as a reference in SilverlightApplication4.</li>
<li>Go to Page.xaml.cs</li>
<li>Add the following line in constructor.
<pre class="brush: csharp;">
Console.WriteLine(ABCDE.Resources.Class1.Foo());
</pre>
</li>
</ol>
</div>
<p><strong>Error:<br />
</strong><br />
<span style="color: red;">Could not load file or assembly &#8216;ABCDE.Resources, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null&#8217; or one of its dependencies. The system cannot find the file specified.</span></p>
<p>I got that error and also, I found that &#8220;ABCDE.Resources&#8221; assembly is not getting generated in Silverlight. So, I reported this issue in WPF/Silverlight Insider List. What I heard from Microsoft is that this is by-design issue. Silverlight&#8217;s application activation logic treats this with special meaning &#8211; it recognizes such an assembly as a satellite resource assembly. Then, I tried to reproduce the issue  just like the way that we used in our project without using any code but just resx file.</p>
<p>Here is new steps to reproduce the issue.</p>
<ol>
<li>Create Silverlight Application (e.g. SilverlightApplication4 ) with web project attached.  (both Silverlight 2 or Silverlight 3)</li>
<li>Add Silverlight Class Library and named it &#8220;ABCDE.Resources&#8221;  <em>&lt;Note: This is very important.&gt;</em></li>
<li>Add new resx file (Let&#8217;s call it &#8220;Strings.resx&#8221;)</li>
<li>Change &#8220;Access Modifier :&#8221; to Public</li>
<li>Add new string to that resx file &#8220;Strings.resx&#8221;<br />
e.g: (Name: YourMessageStringInResx, Value=YourMessageStringValueInResx)</li>
<li>Go to Code-behind of that resx file &#8220;Strings.Designer.cs&#8221; and change <strong>private</strong> constructor to <strong>public</strong>. (why? yes. this is another issue. )</li>
<li>Go to Page.xaml.cs</li>
<li>Add the following line in constructor.
<pre class="brush: csharp;">
Console.WriteLine(Strings.YourMessageStringInResx);
</pre>
</li>
</ol>
<p>Then, run the application. I&#8217;m sure that you will get the same error. I&#8217;m still waiting the response from Microsoft for that issue and I will update this post as soon as I get one. As of now, the only solution for this issue is that don&#8217;t name &#8220;.Resources&#8221; for your class library and use other name like ABCDE.Languages or ABCDE.Rex or etc.</p>
<p>Hope it helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2009/05/04/did-you-know-silverlight-class-library-cant-be-named-with-resources/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
