<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx</link><description>As you can probably tell from my last couple posts I've been working with WPF in different data scenarios. Yesterday I was playing with data validation in WPF and .NET 3.5 which is pretty slick. In this article I'll walk through how to hook up validation</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Dew Drop - June 29, 2008 | Alvin Ashcraft's Morning Dew</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#8667126</link><pubDate>Sun, 29 Jun 2008 15:00:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8667126</guid><dc:creator>Dew Drop - June 29, 2008 | Alvin Ashcraft's Morning Dew</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.alvinashcraft.com/2008/06/29/dew-drop-june-29-2008/"&gt;http://www.alvinashcraft.com/2008/06/29/dew-drop-june-29-2008/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#8681157</link><pubDate>Wed, 02 Jul 2008 14:30:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8681157</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You've been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#8724230</link><pubDate>Sat, 12 Jul 2008 17:20:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8724230</guid><dc:creator>Cesar H. Parrales</dc:creator><description>&lt;p&gt;It would be great to see how manage the warning before an event occurs. For example: Before a user delete a record, bring up a confirmation message. The same for modifications and so on.&lt;/p&gt;
</description></item><item><title>WPF Forms over Data: 2 More Videos! </title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#8770833</link><pubDate>Fri, 25 Jul 2008 04:47:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8770833</guid><dc:creator>Beth Massi - Sharing the goodness that is VB</dc:creator><description>&lt;p&gt;I couldn't wait for the content pages to prop onto MSDN to tell you that I just uploaded two more WPF&lt;/p&gt;
</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#8789213</link><pubDate>Tue, 29 Jul 2008 18:46:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8789213</guid><dc:creator>Mahesh</dc:creator><description>&lt;p&gt;Why are you not using WCF and/or Entity Framework(EF) in these videos?&lt;/p&gt;
</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#8789387</link><pubDate>Tue, 29 Jul 2008 20:05:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8789387</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Mahesh,&lt;/p&gt;
&lt;p&gt;The point is to teach WPF data binding. WCF doesn't change how you bind a form to a data source, it just changes how the data gets to the form. WRT the Entity Framework, I rather have these videos work with released product. At this time Entity Framework is in Beta. However, I do plan on doing a couple videos on EF after SP1 is released (soon). ;-)&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#8905847</link><pubDate>Fri, 29 Aug 2008 20:03:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8905847</guid><dc:creator>Steve Watts</dc:creator><description>&lt;p&gt;Good article. &amp;nbsp;Wish I'd seen this before I bumbled through my Validation exercise. &amp;nbsp;But...&lt;/p&gt;
&lt;p&gt;I'm doing something very similar with the ToolTip and have found that if you have a ToolTip regularly assigned to the control, that the code in the Style Trigger will not override it.&lt;/p&gt;
&lt;p&gt;Have you found that to be true?&lt;/p&gt;
</description></item><item><title>Data validation - Silverlight versus WPF part 2</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9257249</link><pubDate>Tue, 30 Dec 2008 19:04:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9257249</guid><dc:creator>The Problem Solver</dc:creator><description>&lt;p&gt;In a previous blog post I pointed out that quite a difference between data validation between Silverlight&lt;/p&gt;
</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9356789</link><pubDate>Wed, 21 Jan 2009 19:52:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9356789</guid><dc:creator>Scott</dc:creator><description>&lt;p&gt;Beth - I know this is an old entry, but I'm hoping you're still notified of comments.&lt;/p&gt;
&lt;p&gt;I have a WPF app with a TextBox bound to a field in a typed DataTable. &amp;nbsp;The field is a Decimal, and the ColumnChanged event fires fine as long as the user enters a decimal value. &amp;nbsp;It doesn't fire if they enter text.&lt;/p&gt;
&lt;p&gt;Do you know of any reason why this would be? &amp;nbsp;Is the WPF binding preventing the value from being sent to the binding source because the type doesn't match? &amp;nbsp;How can I notify the user of bad input?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;P.S. - I really enjoy your videos. &amp;nbsp;You have a great teaching sense.&lt;/p&gt;</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9356906</link><pubDate>Wed, 21 Jan 2009 20:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9356906</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Scott,&lt;/p&gt;
&lt;p&gt;You'll probably want to add a ValueConverter to do this. Take a look at this post on how to do that: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/bethmassi/archive/2008/12/12/formatting-data-in-wpf-controls.aspx"&gt;http://blogs.msdn.com/bethmassi/archive/2008/12/12/formatting-data-in-wpf-controls.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There's also a video here with sample code: &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/vbasic/dd367843.aspx"&gt;http://msdn.microsoft.com/en-us/vbasic/dd367843.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>ADO.NET Data Services - Intercepting Queries and Adding Validation</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9362909</link><pubDate>Thu, 22 Jan 2009 07:54:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9362909</guid><dc:creator>Beth Massi - Sharing the goodness that is VB</dc:creator><description>&lt;p&gt;Last few posts I've been building a WPF client against ADO.NET Data Services, if you missed them: Using&lt;/p&gt;
</description></item><item><title>ADO.NET Data Services - Intercepting Queries and Adding Validation</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9365153</link><pubDate>Thu, 22 Jan 2009 12:01:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9365153</guid><dc:creator>VB Feeds</dc:creator><description>&lt;p&gt;Last few posts I&amp;amp;#39;ve been building a WPF client against ADO.NET Data Services, if you missed them&lt;/p&gt;
</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9410999</link><pubDate>Tue, 10 Feb 2009 20:55:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9410999</guid><dc:creator>Roy</dc:creator><description>&lt;p&gt;Beth,&lt;/p&gt;
&lt;p&gt;Thanks for the article. &amp;nbsp;I have a question. &amp;nbsp;In the last style (which is the display I too prefer), what is the Loaded event refering to. &amp;nbsp;(What is being loaded?)&lt;/p&gt;
&lt;p&gt;Also a note to Steve's comment of 08/29/09, yes I too have found that to be true. &amp;nbsp;I moved my error message to a ToolTip that displays from the red flashing icon.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9411019</link><pubDate>Tue, 10 Feb 2009 21:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9411019</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Roy,&lt;/p&gt;
&lt;p&gt;When the Elipse and the Textblock (which comprises the &amp;quot;error icon&amp;quot;) is loaded then I want to run the storyboard which makes them flash.&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9411666</link><pubDate>Wed, 11 Feb 2009 03:34:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9411666</guid><dc:creator>Roy</dc:creator><description>&lt;p&gt;Beth,&lt;/p&gt;
&lt;p&gt;Thanks for the response.&lt;/p&gt;
&lt;p&gt;I guess the better question might have been what causes them to get loaded. &amp;nbsp;In other words, why do they load only if there is an error in the error collection?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9434504</link><pubDate>Thu, 19 Feb 2009 20:42:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9434504</guid><dc:creator>Doug</dc:creator><description>&lt;p&gt;Beth,&lt;/p&gt;
&lt;p&gt;Quick question on new entries. &amp;nbsp;If the user clicks save before any data is entered the OnValidate event within the biz layer will throw an error. &amp;nbsp;How do the WPF controls get notified of the errors since no propertychanged event was fired? &amp;nbsp;I am stuck at this point and would like to show the red border, etc. on each invalid field when this occurs.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9703094</link><pubDate>Sun, 07 Jun 2009 00:47:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9703094</guid><dc:creator>Abel</dc:creator><description>&lt;p&gt;how can return exactly at cell with error after an n validations rule&amp;#180;s violation??? .&lt;/p&gt;
&lt;p&gt;I blink errorprovider in cell with error but I jump to another cell.&lt;/p&gt;
&lt;p&gt;can yoy helpme.&lt;/p&gt;</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9852385</link><pubDate>Wed, 29 Jul 2009 21:12:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9852385</guid><dc:creator>Sharf</dc:creator><description>&lt;p&gt;Is there way column allow only numeric? How can I do that? For ex, If I type letters in bounded textbox it should not allow. I can did this in textbox validation but I need in Dataset partial class. Can you help me please?&lt;/p&gt;</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9852420</link><pubDate>Wed, 29 Jul 2009 21:52:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9852420</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Doug,&lt;/p&gt;
&lt;p&gt;You should be able to raise the property changed events from your OnValidate partial methods.&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9852421</link><pubDate>Wed, 29 Jul 2009 21:53:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9852421</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Sharf,&lt;/p&gt;
&lt;p&gt;Read this post on how to format data in controls: &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/bethmassi/archive/2008/12/12/formatting-data-in-wpf-controls.aspx"&gt;http://blogs.msdn.com/bethmassi/archive/2008/12/12/formatting-data-in-wpf-controls.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9852958</link><pubDate>Thu, 30 Jul 2009 08:40:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9852958</guid><dc:creator>Sharf</dc:creator><description>&lt;p&gt;Thanks for your reply. I need this in Winforms. And also the column allow only numeric values and once the user enter &amp;quot;.&amp;quot; after that it should allow only 2 decimal places. Can you please?&lt;/p&gt;</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9853516</link><pubDate>Thu, 30 Jul 2009 19:28:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9853516</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Sharf,&lt;/p&gt;
&lt;p&gt;Sorry I assumed WPF because this discussion is about Validation messages in WPF. Take a look at this article in the MSDN library:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/aa480734.aspx"&gt;http://msdn.microsoft.com/en-us/library/aa480734.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9853619</link><pubDate>Thu, 30 Jul 2009 21:30:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9853619</guid><dc:creator>Sharf</dc:creator><description>&lt;p&gt;Hmm...! That is not exactly what I mean. Actually, I drag &amp;amp; drop Dataset source with DetailsView selected to Winform. So it is already bounded textbox. I need this textbox should validate from Dataset partial class when the user keypress or anyother event. Got it?&lt;/p&gt;</description></item><item><title>re: Displaying Data Validation Messages in WPF</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/27/displaying-data-validation-messages-in-wpf.aspx#9854517</link><pubDate>Fri, 31 Jul 2009 19:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9854517</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Sharf,&lt;/p&gt;
&lt;p&gt;Take a look at this video series, especially # 9 on how to add validation on datasets to Windows forms. &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/vbasic/bb466226.aspx#formsoverdata"&gt;http://msdn.microsoft.com/en-us/vbasic/bb466226.aspx#formsoverdata&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The datagridview will automatically display the error when you tab off the field. If you have more questions please visit the forums: &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://social.msdn.microsoft.com/Forums/en-US/category/visualbasic"&gt;http://social.msdn.microsoft.com/Forums/en-US/category/visualbasic&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>