Resharper-style Error Template for WPF

The built-in error template in WPF is quite basic: a red rectangle around the control that is in error, and I invariably replace it with something a little fancier. I’m not sure who originated this style of error/validation template, but I know it best from the Visual Studio add-in Resharper.

resharper_style_error

Using an error icon such as this one from openclipart.org and a fairly simple error template we can create a similar effect of our own that works for multiple control types, and comes complete with a data-bound tool-tip to display the appropriate error message.

error_template Like all my recent WPF samples the source-code for this is included in the learnwpf samples project hosted on bitbucket.

Comments

alvinashcraft.com
Pingback from alvinashcraft.com

Dew Drop–August 23, 2011 | Alvin Ashcraft's Morning Dew

23/08/2011 12:55:20 PM
Vente en ligne chaussures filles et gar�on
Perfect article.Congratulations dude. Right in my bookmarks
26/08/2011 2:48:07 PM
jennis
That’s really useful. Thansk to share!
29/08/2011 7:12:53 AM
Wholesale Jerseys
Usually NFL fans have a practice of wearing [url=http://www.world-onlineshopping.com/nfl-jerseys-c-5.html]Wholesale NFL Jerseys[/url] in their daily time,this is considered to support and cheer their favorite team or players.All of our [url=http://www.world-onlineshopping.com]Wholesale Jerseys[/url] are made with high quality fabric,which making many changes in their graphics and designs so as to attract numerous sports fanatics to buy them.A NBA lover who want to express his loyalty on the favorite team would absolutely order some good but [url=http://www.world-onlineshopping.com/nba-jerseys-c-4.html]Cheap NBA Jerseys[/url]. You can easily find a wide range of high quality and excellent perfermance [url=http://www.world-onlineshopping.com/nhl-jerseys-c-6.html]Cheap NHL Jerseys[/url],[url=http://www.world-onlineshopping.com/mlb-jerseys-c-7.html]Cheap MLB Jerseys[/url] and Wholesale Soccer Jerseys online stores, world-onlineshopping is a good choice for you to go,you can see [url=http://www.world-onlineshopping.com]Cheap NHL Jerseys on sale[/url]! 2011 latest [url=http://www.world-onlineshopping.com/christian-louboutin-christian-louboutin-boots-c-237_238.html]Christian Louboutin Boots[/url] and [url=http://www.world-onlineshopping.com/christian-louboutin-christian-louboutin-pumps-c-237_239.html]Christian Louboutin Shoes[/url]. <br />

Besides sport jerseys,we also supply [url=http://www.begoodtrading.com]Nike Air Max[/url] sport shoes,this is popular in the world.2011 new fashionable [url=http://www.begoodtrading.com]Women Boots[/url],Wholesale [url=http://www.begoodtrading.com]Ray-Ban Sunglasses[/url],sporting [url=http://www.begoodtrading.com]NFL Caps[/url] are on promotion now,2011 [url=http://www.begoodtrading.com]Coach Handbags[/url]are in new design.

29/08/2011 1:14:54 PM
Microsoft Weblogs
Windows Client Developer Roundup 080 for 8/29/2011

The Windows Client Developer Roundup aggregates information of interest to Windows Client Developers

29/08/2011 8:22:55 PM
dashark.com
Pingback from dashark.com

How To Fix Max Xaml Error in Windows

21/01/2015 10:03:12 PM