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


Subscribe in a reader


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   October 2008   November 2008   December 2008   January 2009   March 2009  


Fun and Games



 

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