<?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: Update Views through events between their ViewModels</title>
	<atom:link href="http://www.freddes.se/2009/12/04/update-views-through-events-between-their-viewmodels/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.freddes.se/2009/12/04/update-views-through-events-between-their-viewmodels/</link>
	<description>...because I&#039;m a nerd</description>
	<lastBuildDate>Fri, 13 Jan 2012 16:13:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Eben</title>
		<link>http://www.freddes.se/2009/12/04/update-views-through-events-between-their-viewmodels/comment-page-1/#comment-721</link>
		<dc:creator>Eben</dc:creator>
		<pubDate>Sun, 24 Jan 2010 05:28:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.freddes.se/?p=1012#comment-721</guid>
		<description>Hello Fredde,

Got here from Gabriel&#039;s site --- needed the Google Map bounding box thing sorted.

Anyway, it seems as though your coupling is still rather high since you are specifically linking the event.

I have used a slightly different mechanism I borrowed from the ESB world.  I use a front-end message bus and objects can subscribe to specific messages they are interested in.

Another trick to avoid having to check for event listeners is to use an empty listener:

public event SelectedImageChangedHandler ImageSelectionChanged = delegate { }; 

Then you know you always have one :) --- so now you can just raise the event.

I have an example application utilising many different techniques should you be interested:

http://www.ebenroux.co.za/page/Abacus.aspx

The plan is to extend it to demonstrate various enterprise-level techniques and technologies.

Regards,
Eben</description>
		<content:encoded><![CDATA[<p>Hello Fredde,</p>
<p>Got here from Gabriel&#8217;s site &#8212; needed the Google Map bounding box thing sorted.</p>
<p>Anyway, it seems as though your coupling is still rather high since you are specifically linking the event.</p>
<p>I have used a slightly different mechanism I borrowed from the ESB world.  I use a front-end message bus and objects can subscribe to specific messages they are interested in.</p>
<p>Another trick to avoid having to check for event listeners is to use an empty listener:</p>
<p>public event SelectedImageChangedHandler ImageSelectionChanged = delegate { }; </p>
<p>Then you know you always have one <img src='http://www.freddes.se/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8212; so now you can just raise the event.</p>
<p>I have an example application utilising many different techniques should you be interested:</p>
<p><a href="http://www.ebenroux.co.za/page/Abacus.aspx" rel="nofollow">http://www.ebenroux.co.za/page/Abacus.aspx</a></p>
<p>The plan is to extend it to demonstrate various enterprise-level techniques and technologies.</p>
<p>Regards,<br />
Eben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suda</title>
		<link>http://www.freddes.se/2009/12/04/update-views-through-events-between-their-viewmodels/comment-page-1/#comment-719</link>
		<dc:creator>suda</dc:creator>
		<pubDate>Fri, 15 Jan 2010 18:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.freddes.se/?p=1012#comment-719</guid>
		<description>Thanks, It helped me alot. I used static event because my viewmodels are independent and they are not subviews.</description>
		<content:encoded><![CDATA[<p>Thanks, It helped me alot. I used static event because my viewmodels are independent and they are not subviews.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

