While logging in to msn-messenger you have these nifty textboxes that show you what to type (username, password) in gray text. Once you start typing it disappears. This surely is not hard to implement using a user control in WPF, but is this control/behaviour already available?
+2
A:
This is called a "watermark textbox". Here's a code sample:
http://vistasquad.co.uk/blogs/nondestructive/archive/2009/01/02/wpf-textbox-with-watermark.aspx
MusiGenesis
2009-07-25 12:04:28
I found the code in Arkain's example hard to grasp.Your link provides an effective and simple to extend WatermardedTextBox. I integrated it in my code. Thanks!
Dabblernl
2009-09-06 08:11:54