<?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: Value Coercion for the Masses</title>
	<atom:link href="http://drwpf.com/blog/2010/05/05/value-coercion-for-the-masses/feed/" rel="self" type="application/rss+xml" />
	<link>http://drwpf.com/blog/2010/05/05/value-coercion-for-the-masses/</link>
	<description>Drinking (and serving) the WPF Kool-Aid since 2002</description>
	<lastBuildDate>Mon, 30 Aug 2010 18:54:01 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dr. WPF</title>
		<link>http://drwpf.com/blog/2010/05/05/value-coercion-for-the-masses/comment-page-1/#comment-2433</link>
		<dc:creator>Dr. WPF</dc:creator>
		<pubDate>Sat, 08 May 2010 16:43:51 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=144#comment-2433</guid>
		<description>Very good point, Andrew.  That&#039;s a scenario that could definitely come into play, and currently you would have to change the property value to some other valid value and then set it back to the desired value in order to update the base value.  I will update the comments in the source with this information.

I might also add a helper method that just updates the base value to match the effective value (for people who are dilligent enough to watch for edge scenarios).

The only way I can think of to avoid fringe cases like this is if they add true coercion support to the property engine in Silverlight, but I&#039;m guessing it isn&#039;t very high on the priority list.</description>
		<content:encoded><![CDATA[<p>Very good point, Andrew.  That&#8217;s a scenario that could definitely come into play, and currently you would have to change the property value to some other valid value and then set it back to the desired value in order to update the base value.  I will update the comments in the source with this information.</p>
<p>I might also add a helper method that just updates the base value to match the effective value (for people who are dilligent enough to watch for edge scenarios).</p>
<p>The only way I can think of to avoid fringe cases like this is if they add true coercion support to the property engine in Silverlight, but I&#8217;m guessing it isn&#8217;t very high on the priority list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Smith</title>
		<link>http://drwpf.com/blog/2010/05/05/value-coercion-for-the-masses/comment-page-1/#comment-2048</link>
		<dc:creator>Andrew Smith</dc:creator>
		<pubDate>Fri, 07 May 2010 11:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=144#comment-2048</guid>
		<description>Excellent! I may have missed it if you mentioned it but one other subtle downside besides the one you list in the source about e.NewValue being the base value in SL is that if you explicitly set the Value to what you consider to be the effective/coerced value, you will not be able to update the base value to that value since you won&#039;t get a property changed callback.</description>
		<content:encoded><![CDATA[<p>Excellent! I may have missed it if you mentioned it but one other subtle downside besides the one you list in the source about e.NewValue being the base value in SL is that if you explicitly set the Value to what you consider to be the effective/coerced value, you will not be able to update the base value to that value since you won&#8217;t get a property changed callback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr. WPF</title>
		<link>http://drwpf.com/blog/2010/05/05/value-coercion-for-the-masses/comment-page-1/#comment-1280</link>
		<dc:creator>Dr. WPF</dc:creator>
		<pubDate>Thu, 06 May 2010 17:06:26 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=144#comment-1280</guid>
		<description>Thanks @wekempf.  Yep, I use the helper class from a library, myself, as a practical matter.  The same is true for several of the WPF helper classes that are included in my snippets (RoutedEventHelper, RoutedCommandHelper, etc).  I rarely have a need to expand these templates because they are in my core MVVM library.

Since several other snippets rely on the helper classes, I include them in snippet form just to ensure the snippet package is complete for others.  But it definitely makes sense to expand them into a library for anyone who plans to use them across projects.  :)</description>
		<content:encoded><![CDATA[<p>Thanks @wekempf.  Yep, I use the helper class from a library, myself, as a practical matter.  The same is true for several of the WPF helper classes that are included in my snippets (RoutedEventHelper, RoutedCommandHelper, etc).  I rarely have a need to expand these templates because they are in my core MVVM library.</p>
<p>Since several other snippets rely on the helper classes, I include them in snippet form just to ensure the snippet package is complete for others.  But it definitely makes sense to expand them into a library for anyone who plans to use them across projects.  <img src='http://drwpf.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wekempf</title>
		<link>http://drwpf.com/blog/2010/05/05/value-coercion-for-the-masses/comment-page-1/#comment-1270</link>
		<dc:creator>wekempf</dc:creator>
		<pubDate>Thu, 06 May 2010 16:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=144#comment-1270</guid>
		<description>As usual, great stuff! I&#039;d put the helper class in a library rather than using a snippet every time, but that&#039;s just me. :)</description>
		<content:encoded><![CDATA[<p>As usual, great stuff! I&#8217;d put the helper class in a library rather than using a snippet every time, but that&#8217;s just me. <img src='http://drwpf.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal</title>
		<link>http://drwpf.com/blog/2010/05/05/value-coercion-for-the-masses/comment-page-1/#comment-1102</link>
		<dc:creator>Vishal</dc:creator>
		<pubDate>Thu, 06 May 2010 13:06:18 +0000</pubDate>
		<guid isPermaLink="false">http://drwpf.com/blog/?p=144#comment-1102</guid>
		<description>Hello,

I found this site while I was searching results for WPF in google. I found this site very informative and I must say you know WPF inside out. I have added this site to my list of favorites. 

Regards.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I found this site while I was searching results for WPF in google. I found this site very informative and I must say you know WPF inside out. I have added this site to my list of favorites. </p>
<p>Regards.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

