Lost in .NET Code

Developing software in .NET, Security and other ramblings.

Textbox Watermark in WPF

Wednesday, June 27, 2007

I have been recently playing with WPF and I am building my standard controls library before I start building my first really serious app for production.



One of the neat little controls I made last night was for a TextboxWaterMark



It looks like this.


It is inspired from http://ajax.asp.net/ajaxtoolkit/TextBoxWatermark/TextBoxWatermark.aspx

You can customize the text and colours (Brushes) . I thought I would drop it onto the web just in case it saves anyone else some time in the future. It is nothing amazing don't get me wrong, but might save someone in the future 30 mins or so. ;-)

Feel free to copy and use commercially. This code though does not come with any warranty and is not 100% tested so you use it at your own risk.


TextBoxWaterMark.cs

3 Comments:

Blogger karnqu said...

This post has been removed by the author.

November 11, 2007 10:36 PM

 
Blogger karnqu said...

This post has been removed by the author.

November 11, 2007 10:54 PM

 
Blogger Vodka Lime said...

Scweet thanks... works great and saved me some time:P

May 23, 2008 9:21 AM

 

Post a Comment

<< Home


Subscribe in a reader


Blogs I read

Tristan Phillips
Sarah Blow (.Net Mobile)
Mike Taulty (MS DPE)
Ian Griffths (WPF)
Jack Greenfield


Useful Links

Fircroft Trust Ltd
Unwind Software Ltd


Archives

December 2006   January 2007   February 2007   March 2007   April 2007   May 2007   June 2007   October 2007   November 2007   February 2008   April 2008   May 2008   June 2008   July 2008   August 2008  


Fun and Games



 

This page is powered by Blogger. Isn't yours?