<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Rules of MVVM??</title>
	<atom:link href="http://michaelsync.net/2010/02/03/rules-of-mvvm/feed" rel="self" type="application/rss+xml" />
	<link>http://michaelsync.net/2010/02/03/rules-of-mvvm</link>
	<description>Sharing our knowledge</description>
	<lastBuildDate>Thu, 19 Jan 2012 06:22:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Marvin Varela</title>
		<link>http://michaelsync.net/2010/02/03/rules-of-mvvm/comment-page-1#comment-211373</link>
		<dc:creator>Marvin Varela</dc:creator>
		<pubDate>Fri, 05 Feb 2010 18:00:55 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/?p=1531#comment-211373</guid>
		<description>I agree with Michael about the ObservableCollection approach; however, I would like to point out that some times it is necessary to add some other ingredients for the mix, for example, creating a custom ItemsControl class that prepares the container or even returns a custom one. Similarly, sometimes it is necessary to watch out for timing: binding immediately may not be a good idea as it all happens in the UI thread, you may want to create a mechanism that delays the actual binding until after a fancy animation is over.

If testability is key, you really want to make the separation clear and strict.</description>
		<content:encoded><![CDATA[<p>I agree with Michael about the ObservableCollection approach; however, I would like to point out that some times it is necessary to add some other ingredients for the mix, for example, creating a custom ItemsControl class that prepares the container or even returns a custom one. Similarly, sometimes it is necessary to watch out for timing: binding immediately may not be a good idea as it all happens in the UI thread, you may want to create a mechanism that delays the actual binding until after a fancy animation is over.</p>
<p>If testability is key, you really want to make the separation clear and strict.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Rogers</title>
		<link>http://michaelsync.net/2010/02/03/rules-of-mvvm/comment-page-1#comment-211279</link>
		<dc:creator>Will Rogers</dc:creator>
		<pubDate>Thu, 04 Feb 2010 15:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/?p=1531#comment-211279</guid>
		<description>Thanks Michael. I think I understand your suggestion and will give it a shot in the near future. I&#039;ll try to remember to post back here with my results.</description>
		<content:encoded><![CDATA[<p>Thanks Michael. I think I understand your suggestion and will give it a shot in the near future. I&#8217;ll try to remember to post back here with my results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sync</title>
		<link>http://michaelsync.net/2010/02/03/rules-of-mvvm/comment-page-1#comment-211278</link>
		<dc:creator>Michael Sync</dc:creator>
		<pubDate>Thu, 04 Feb 2010 15:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/?p=1531#comment-211278</guid>
		<description>You can probably use the Data Template for that.  Put those controls in DT. 

Let&#039;s say you have a class called Circle. So, you can have the ObservableCollection[Circle] in VM. You have ItemControl in V and that is binded to that OC[Circle]... 

If you want to increase one circle, then you can just add new circle to OC.. then new circle control from DT will be displayed in View. 

Feel free to let me know if you are not clear with that.</description>
		<content:encoded><![CDATA[<p>You can probably use the Data Template for that.  Put those controls in DT. </p>
<p>Let&#8217;s say you have a class called Circle. So, you can have the ObservableCollection[Circle] in VM. You have ItemControl in V and that is binded to that OC[Circle]&#8230; </p>
<p>If you want to increase one circle, then you can just add new circle to OC.. then new circle control from DT will be displayed in View. </p>
<p>Feel free to let me know if you are not clear with that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Rogers</title>
		<link>http://michaelsync.net/2010/02/03/rules-of-mvvm/comment-page-1#comment-211277</link>
		<dc:creator>Will Rogers</dc:creator>
		<pubDate>Thu, 04 Feb 2010 15:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/?p=1531#comment-211277</guid>
		<description>The rule I&#039;ve been struggling with most is not keeping a reference to the View in the ViewModel. For instance, I have an operation whose result requires me to add additional XAML controls to the View. I haven&#039;t figured out how to do this without directly using the View from the ViewModel.

Any suggestions? This is a Silverlight 3 application.</description>
		<content:encoded><![CDATA[<p>The rule I&#8217;ve been struggling with most is not keeping a reference to the View in the ViewModel. For instance, I have an operation whose result requires me to add additional XAML controls to the View. I haven&#8217;t figured out how to do this without directly using the View from the ViewModel.</p>
<p>Any suggestions? This is a Silverlight 3 application.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

