tags:

views:

143

answers:

2

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: 

Not that I'm aware, but I haven't spend much time with SL3 yet, but here is an article of how to implement it.

Arkain
+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
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