<?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: INotifyPropertyChanged Snippets (And Why You Should Use These Instead of DependencyProperties)</title>
	<atom:link href="http://www.designerwpf.com/2009/04/30/inotifypropertychanged-snippets-and-why-you-should-use-these-instead-of-dependencyproperties/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.designerwpf.com/2009/04/30/inotifypropertychanged-snippets-and-why-you-should-use-these-instead-of-dependencyproperties/</link>
	<description>Matthias Shapiro's WPF &#38; Silverlight Blog - Because Developers Get All The Good Blogs</description>
	<lastBuildDate>Fri, 05 Mar 2010 16:36:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Denis Vuyka</title>
		<link>http://www.designerwpf.com/2009/04/30/inotifypropertychanged-snippets-and-why-you-should-use-these-instead-of-dependencyproperties/comment-page-1/#comment-1563</link>
		<dc:creator>Denis Vuyka</dc:creator>
		<pubDate>Sat, 16 May 2009 05:59:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.designerwpf.com/2009/04/30/inotifypropertychanged-snippets-and-why-you-should-use-these-instead-of-dependencyproperties/#comment-1563</guid>
		<description>I agree with Clayton Firth. This is a violation of pattern not checking the value being actually changed before raising notifications. There may be many components bound to this property or listening to property change notifications. You will make a great performance impact or push UI editors into the endless loop of updates and as a result StackOverflow exception.
Checking the property value is a mandatory part of this pattern.</description>
		<content:encoded><![CDATA[<p>I agree with Clayton Firth. This is a violation of pattern not checking the value being actually changed before raising notifications. There may be many components bound to this property or listening to property change notifications. You will make a great performance impact or push UI editors into the endless loop of updates and as a result StackOverflow exception.<br />
Checking the property value is a mandatory part of this pattern.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.designerwpf.com/2009/04/30/inotifypropertychanged-snippets-and-why-you-should-use-these-instead-of-dependencyproperties/comment-page-1/#comment-1472</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 01 May 2009 17:00:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.designerwpf.com/2009/04/30/inotifypropertychanged-snippets-and-why-you-should-use-these-instead-of-dependencyproperties/#comment-1472</guid>
		<description>You shouldn&#039;t give a new collection as default value for your dependency property. Create a new instance in the ctor and there should be no problem.</description>
		<content:encoded><![CDATA[<p>You shouldn&#8217;t give a new collection as default value for your dependency property. Create a new instance in the ctor and there should be no problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias Shapiro</title>
		<link>http://www.designerwpf.com/2009/04/30/inotifypropertychanged-snippets-and-why-you-should-use-these-instead-of-dependencyproperties/comment-page-1/#comment-1468</link>
		<dc:creator>Matthias Shapiro</dc:creator>
		<pubDate>Fri, 01 May 2009 04:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.designerwpf.com/2009/04/30/inotifypropertychanged-snippets-and-why-you-should-use-these-instead-of-dependencyproperties/#comment-1468</guid>
		<description>I assume that by &quot;actually changes&quot;, you mean that the new value is different than the old value (even if the value changed in the sense that it was re-set). What you have works for me... :-)</description>
		<content:encoded><![CDATA[<p>I assume that by &#8220;actually changes&#8221;, you mean that the new value is different than the old value (even if the value changed in the sense that it was re-set). What you have works for me&#8230; <img src='http://www.designerwpf.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clayton Firth</title>
		<link>http://www.designerwpf.com/2009/04/30/inotifypropertychanged-snippets-and-why-you-should-use-these-instead-of-dependencyproperties/comment-page-1/#comment-1467</link>
		<dc:creator>Clayton Firth</dc:creator>
		<pubDate>Fri, 01 May 2009 03:52:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.designerwpf.com/2009/04/30/inotifypropertychanged-snippets-and-why-you-should-use-these-instead-of-dependencyproperties/#comment-1467</guid>
		<description>What is you opinion of checking if the property &quot;actually&quot; changes? I would normally add the following code.

if(!_myProperty.Equals(value))
{
    _myProperty = value;
    RaisePropertyChanged(&quot;MyProperty&quot;); 
}</description>
		<content:encoded><![CDATA[<p>What is you opinion of checking if the property &#8220;actually&#8221; changes? I would normally add the following code.</p>
<p>if(!_myProperty.Equals(value))<br />
{<br />
    _myProperty = value;<br />
    RaisePropertyChanged(&#8220;MyProperty&#8221;);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
