<?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: Silverlight MultiBindings, How to attached multiple bindings to a single property.</title>
	<atom:link href="http://www.scottlogic.co.uk/blog/colin/2009/06/silverlight-multibindings-how-to-attached-mutiple-bindings-to-a-single-property/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scottlogic.co.uk/blog/colin/2009/06/silverlight-multibindings-how-to-attached-mutiple-bindings-to-a-single-property/</link>
	<description>Colin Eberhardt&#039;s Adventures in .NET</description>
	<lastBuildDate>Thu, 09 Feb 2012 03:02:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Colin Eberhardt</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2009/06/silverlight-multibindings-how-to-attached-mutiple-bindings-to-a-single-property/#comment-10921</link>
		<dc:creator>Colin Eberhardt</dc:creator>
		<pubDate>Mon, 10 May 2010 07:23:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=347#comment-10921</guid>
		<description>@All,

Updated for SL4 here: http://www.scottlogic.co.uk/blog/colin/2010/05/silverlight-multibinding-solution-for-silverlight-4/

Regards, Colin E.</description>
		<content:encoded><![CDATA[<p>@All,</p>
<p>Updated for SL4 here: <a href="http://www.scottlogic.co.uk/blog/colin/2010/05/silverlight-multibinding-solution-for-silverlight-4/" rel="nofollow">http://www.scottlogic.co.uk/blog/colin/2010/05/silverlight-multibinding-solution-for-silverlight-4/</a></p>
<p>Regards, Colin E.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silverlight MultiBinding solution for Silverlight 4 &#124; Colin Eberhardt&#39;s Adventures in WPF</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2009/06/silverlight-multibindings-how-to-attached-mutiple-bindings-to-a-single-property/#comment-10920</link>
		<dc:creator>Silverlight MultiBinding solution for Silverlight 4 &#124; Colin Eberhardt&#39;s Adventures in WPF</dc:creator>
		<pubDate>Mon, 10 May 2010 07:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=347#comment-10920</guid>
		<description>[...] (Updated)rgames on WPF DataGrid &#8211; Committing changes cell-by-cellKeith Richardson on Silverlight MultiBindings, How to attached multiple bindings to a single property.Keith Richardson on Silverlight MultiBindings, How to attached multiple bindings to a single [...]</description>
		<content:encoded><![CDATA[<p>[...] (Updated)rgames on WPF DataGrid &#8211; Committing changes cell-by-cellKeith Richardson on Silverlight MultiBindings, How to attached multiple bindings to a single property.Keith Richardson on Silverlight MultiBindings, How to attached multiple bindings to a single [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Richardson</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2009/06/silverlight-multibindings-how-to-attached-mutiple-bindings-to-a-single-property/#comment-10812</link>
		<dc:creator>Keith Richardson</dc:creator>
		<pubDate>Thu, 06 May 2010 14:32:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=347#comment-10812</guid>
		<description>Stefan Olson has updated his enhanced version of this library to work with Silverlight 4: http://www.olsonsoft.com/blogs/stefanolson/post/Updates-to-Silverlight-Multi-binding-support.aspx.  Looks like you now have to create a &quot;BindingCollection&quot; type to hold the bindings, rather than just letting them be an ObservableCollection.  Thank you Colin and Stefan!</description>
		<content:encoded><![CDATA[<p>Stefan Olson has updated his enhanced version of this library to work with Silverlight 4: <a href="http://www.olsonsoft.com/blogs/stefanolson/post/Updates-to-Silverlight-Multi-binding-support.aspx" rel="nofollow">http://www.olsonsoft.com/blogs/stefanolson/post/Updates-to-Silverlight-Multi-binding-support.aspx</a>.  Looks like you now have to create a &#8220;BindingCollection&#8221; type to hold the bindings, rather than just letting them be an ObservableCollection.  Thank you Colin and Stefan!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Richardson</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2009/06/silverlight-multibindings-how-to-attached-mutiple-bindings-to-a-single-property/#comment-10809</link>
		<dc:creator>Keith Richardson</dc:creator>
		<pubDate>Thu, 06 May 2010 13:45:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=347#comment-10809</guid>
		<description>I&#039;m getting the same error as Florian after I converted to Silverlight 4.  Any ideas yet?  Thanks.</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting the same error as Florian after I converted to Silverlight 4.  Any ideas yet?  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Eberhardt</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2009/06/silverlight-multibindings-how-to-attached-mutiple-bindings-to-a-single-property/#comment-10225</link>
		<dc:creator>Colin Eberhardt</dc:creator>
		<pubDate>Tue, 20 Apr 2010 09:57:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=347#comment-10225</guid>
		<description>@Florian, I&#039;ll try and look into this shortly.
Colin E.</description>
		<content:encoded><![CDATA[<p>@Florian, I&#8217;ll try and look into this shortly.<br />
Colin E.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Florian</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2009/06/silverlight-multibindings-how-to-attached-mutiple-bindings-to-a-single-property/#comment-10211</link>
		<dc:creator>Florian</dc:creator>
		<pubDate>Mon, 19 Apr 2010 15:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=347#comment-10211</guid>
		<description>In Silverligh 4 I get the following exception. 

System.ArgumentException: Object of type &#039;System.Windows.Data.Binding&#039; cannot be converted to type &#039;System.Collections.ObjectModel.ObservableCollection</description>
		<content:encoded><![CDATA[<p>In Silverligh 4 I get the following exception. </p>
<p>System.ArgumentException: Object of type &#8216;System.Windows.Data.Binding&#8217; cannot be converted to type &#8216;System.Collections.ObjectModel.ObservableCollection</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Eberhardt</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2009/06/silverlight-multibindings-how-to-attached-mutiple-bindings-to-a-single-property/#comment-9683</link>
		<dc:creator>Colin Eberhardt</dc:creator>
		<pubDate>Sat, 27 Mar 2010 15:41:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=347#comment-9683</guid>
		<description>Hi Greg,

Thanks for your comments - I guess as you have discovered for yourself, it was Josh Smith who suggested that the MVVM pattern can be used to totally remove the need for ValueConverters. This is quite an extreme view and I think Josh proposed it in order to stimulate discussion. It has certainly done the trick!

I take a pragmatic approach and will quite often do away with MVVM altogether. WPF / Silverlight has a great binding framework that makes it possible to bind straight to your business objects. If you do not need unit test or designer support, then why use MVVM. I have mentioned this in some of my other posts:

http://www.scottlogic.co.uk/blog/colin/2009/08/the-mini-viewmodel-pattern/

I like the quote from Paul Stovell which you included.

Colin E.</description>
		<content:encoded><![CDATA[<p>Hi Greg,</p>
<p>Thanks for your comments &#8211; I guess as you have discovered for yourself, it was Josh Smith who suggested that the MVVM pattern can be used to totally remove the need for ValueConverters. This is quite an extreme view and I think Josh proposed it in order to stimulate discussion. It has certainly done the trick!</p>
<p>I take a pragmatic approach and will quite often do away with MVVM altogether. WPF / Silverlight has a great binding framework that makes it possible to bind straight to your business objects. If you do not need unit test or designer support, then why use MVVM. I have mentioned this in some of my other posts:</p>
<p><a href="http://www.scottlogic.co.uk/blog/colin/2009/08/the-mini-viewmodel-pattern/" rel="nofollow">http://www.scottlogic.co.uk/blog/colin/2009/08/the-mini-viewmodel-pattern/</a></p>
<p>I like the quote from Paul Stovell which you included.</p>
<p>Colin E.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Schroder</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2009/06/silverlight-multibindings-how-to-attached-mutiple-bindings-to-a-single-property/#comment-9593</link>
		<dc:creator>Greg Schroder</dc:creator>
		<pubDate>Tue, 23 Mar 2010 14:40:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/colin/?p=347#comment-9593</guid>
		<description>Sorry, some more to add..

First of all, I see this is a big contentious issue, which is sort of hanging in the balance still it seems (maybe Microsofts concreting their implementation of MVVM in 2010 will help).

After reading more of the discussions, I see what Josh Smith suggests is Model-ModelView-View-ViewModel (MMVVVM) :)  
http://joshsmithonwpf.wordpress.com/2008/12/01/the-philosophies-of-mvvm
Horrible name yes, but provides some clarity as to what some view MVVM should be, which I previously pondered.

Essentially what I use are ModelViews, and I use converters instead of ViewModels for formatting etc. I&#039;m still not sold on ViewModels as Josh describes, feel like you code-base will start to be very bloated. Yes, the formatting code is common to the converter and ViewModel, I just feel creating a new ViewModel class with new properties is a bit much, adding another level (think about adding a new property to your Model, bubbling up (or down) you have another layer to add it to?
I will refer to mine as VMs (basically combines Models for a View), and Josh&#039;s as ViewModel and ModelView, to try prevent some confusion.

Typically I have a VM per View (i.e. per Control), which exposes a number of Models. Converters convert the Model properties to a desired format, based on a preferences manager say. If I had multiple Views for a specific VM, I would control the formatting by the converter and the preferences, as opposed to having multiple ViewModels for each. That would lead to having a ModelView per Model, a ViewModel for each Model and View, and another ViewModel per View (which combines the ViewModels per Model &amp; View for each Control)? All a bit confusing...

As others Paul Stovell said, &quot;I see the VM as a way of shaping the domain model, rather than a wayof completely simplifying the view.&quot; 
His example: &quot;a library book is overdue, then I might expose a property such as &#039;IsOverdue&#039; which my panel&#039;s visibility is based on.&quot;, and not have a Visibility property in the VM.

Thoughts?</description>
		<content:encoded><![CDATA[<p>Sorry, some more to add..</p>
<p>First of all, I see this is a big contentious issue, which is sort of hanging in the balance still it seems (maybe Microsofts concreting their implementation of MVVM in 2010 will help).</p>
<p>After reading more of the discussions, I see what Josh Smith suggests is Model-ModelView-View-ViewModel (MMVVVM) <img src='http://www.scottlogic.co.uk/blog/colin/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<a href="http://joshsmithonwpf.wordpress.com/2008/12/01/the-philosophies-of-mvvm" rel="nofollow">http://joshsmithonwpf.wordpress.com/2008/12/01/the-philosophies-of-mvvm</a><br />
Horrible name yes, but provides some clarity as to what some view MVVM should be, which I previously pondered.</p>
<p>Essentially what I use are ModelViews, and I use converters instead of ViewModels for formatting etc. I&#8217;m still not sold on ViewModels as Josh describes, feel like you code-base will start to be very bloated. Yes, the formatting code is common to the converter and ViewModel, I just feel creating a new ViewModel class with new properties is a bit much, adding another level (think about adding a new property to your Model, bubbling up (or down) you have another layer to add it to?<br />
I will refer to mine as VMs (basically combines Models for a View), and Josh&#8217;s as ViewModel and ModelView, to try prevent some confusion.</p>
<p>Typically I have a VM per View (i.e. per Control), which exposes a number of Models. Converters convert the Model properties to a desired format, based on a preferences manager say. If I had multiple Views for a specific VM, I would control the formatting by the converter and the preferences, as opposed to having multiple ViewModels for each. That would lead to having a ModelView per Model, a ViewModel for each Model and View, and another ViewModel per View (which combines the ViewModels per Model &amp; View for each Control)? All a bit confusing&#8230;</p>
<p>As others Paul Stovell said, &#8220;I see the VM as a way of shaping the domain model, rather than a wayof completely simplifying the view.&#8221;<br />
His example: &#8220;a library book is overdue, then I might expose a property such as &#8216;IsOverdue&#8217; which my panel&#8217;s visibility is based on.&#8221;, and not have a Visibility property in the VM.</p>
<p>Thoughts?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

