<?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: Using BindingGroups for greater control over input validation</title>
	<atom:link href="http://www.scottlogic.co.uk/blog/colin/2008/11/using-bindinggroups-for-greater-control-over-input-validation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scottlogic.co.uk/blog/colin/2008/11/using-bindinggroups-for-greater-control-over-input-validation/</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: pete</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2008/11/using-bindinggroups-for-greater-control-over-input-validation/#comment-7395</link>
		<dc:creator>pete</dc:creator>
		<pubDate>Sun, 10 Jan 2010 16:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://wpfadventures.wordpress.com/?p=31#comment-7395</guid>
		<description>So how would you get the error message from a staticresource dictionary (for different languages) to support localization?</description>
		<content:encoded><![CDATA[<p>So how would you get the error message from a staticresource dictionary (for different languages) to support localization?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HAPSGLISA</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2008/11/using-bindinggroups-for-greater-control-over-input-validation/#comment-40</link>
		<dc:creator>HAPSGLISA</dc:creator>
		<pubDate>Thu, 05 Feb 2009 21:19:32 +0000</pubDate>
		<guid isPermaLink="false">http://wpfadventures.wordpress.com/?p=31#comment-40</guid>
		<description>Hi. Your site displays incorrectly in Opera, but content excellent! Thank you for your wise words:)</description>
		<content:encoded><![CDATA[<p>Hi. Your site displays incorrectly in Opera, but content excellent! Thank you for your wise words:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BindingGroups for Total View Validation &#171; Colin Eberhardt&#8217;s Adventures in WPF</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2008/11/using-bindinggroups-for-greater-control-over-input-validation/#comment-22</link>
		<dc:creator>BindingGroups for Total View Validation &#171; Colin Eberhardt&#8217;s Adventures in WPF</dc:creator>
		<pubDate>Mon, 26 Jan 2009 14:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://wpfadventures.wordpress.com/?p=31#comment-22</guid>
		<description>[...] BindingGroups were introduced as part of .NET 3.5 SP1, Vincent Sibal provides a good introduction to this new features on his blog. I have previously blogged on the subject of BindingGroups, where I demonstrated how they can be used to provide  improved error messages when type conversion fails during the binding process. [...]</description>
		<content:encoded><![CDATA[<p>[...] BindingGroups were introduced as part of .NET 3.5 SP1, Vincent Sibal provides a good introduction to this new features on his blog. I have previously blogged on the subject of BindingGroups, where I demonstrated how they can be used to provide  improved error messages when type conversion fails during the binding process. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hugeonion</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2008/11/using-bindinggroups-for-greater-control-over-input-validation/#comment-9</link>
		<dc:creator>hugeonion</dc:creator>
		<pubDate>Thu, 15 Jan 2009 15:50:33 +0000</pubDate>
		<guid isPermaLink="false">http://wpfadventures.wordpress.com/?p=31#comment-9</guid>
		<description>Thanks Colin.  I understand the pattern now a bit more.  Keep up the good work!</description>
		<content:encoded><![CDATA[<p>Thanks Colin.  I understand the pattern now a bit more.  Keep up the good work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ceberhardt</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2008/11/using-bindinggroups-for-greater-control-over-input-validation/#comment-11</link>
		<dc:creator>ceberhardt</dc:creator>
		<pubDate>Thu, 15 Jan 2009 14:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://wpfadventures.wordpress.com/?p=31#comment-11</guid>
		<description>Hi,

Thanks very much for bringing this to my attention. I tried the example code again - and funnily enough, it did not work for me either! I wonder what on earth went wrong there?

The problem is easily fixed though - after using BindingGroup.TryGetValue() to retrieve the bound age property, use Int32.TryParse to see whether a valid integer value was input into the text box. If not, throw an exception.

Article and example project have both been updated so should work now. Please let me know if you find any more problems.

Regards,
Colin E.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks very much for bringing this to my attention. I tried the example code again &#8211; and funnily enough, it did not work for me either! I wonder what on earth went wrong there?</p>
<p>The problem is easily fixed though &#8211; after using BindingGroup.TryGetValue() to retrieve the bound age property, use Int32.TryParse to see whether a valid integer value was input into the text box. If not, throw an exception.</p>
<p>Article and example project have both been updated so should work now. Please let me know if you find any more problems.</p>
<p>Regards,<br />
Colin E.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hugeonion</title>
		<link>http://www.scottlogic.co.uk/blog/colin/2008/11/using-bindinggroups-for-greater-control-over-input-validation/#comment-10</link>
		<dc:creator>hugeonion</dc:creator>
		<pubDate>Thu, 15 Jan 2009 06:32:07 +0000</pubDate>
		<guid isPermaLink="false">http://wpfadventures.wordpress.com/?p=31#comment-10</guid>
		<description>Hmmm.  I downloaded the code, built it and ran it but the validation is not working exactly as in your post.  Specifically, the -2 example works, but when I enter 56f for the age, it accepts it without a validation error.   I do have 3.5 SP1 installed if that makes any difference.  Maybe it&#039;s just me, but I thought I would let you know.

I can provide some more details if you need too...

--
Christopher</description>
		<content:encoded><![CDATA[<p>Hmmm.  I downloaded the code, built it and ran it but the validation is not working exactly as in your post.  Specifically, the -2 example works, but when I enter 56f for the age, it accepts it without a validation error.   I do have 3.5 SP1 installed if that makes any difference.  Maybe it&#8217;s just me, but I thought I would let you know.</p>
<p>I can provide some more details if you need too&#8230;</p>
<p>&#8211;<br />
Christopher</p>
]]></content:encoded>
	</item>
</channel>
</rss>

