One more quick UI experiment. Objective is to implement an watermarked textbox control. It is a normal textbox plus some text as a watermark when textbox is not in focus. On user click, the text will go away.
Bing showed me that, Watermark property ships with in Silverlight 4.0, but is not available for WP7. And there is an implementation available for Silverlight 2.0 (thanks Tim!). So an hour later, we have the following :).
The source is available here, download link (MSPL license). Source code is provided as it is. Please report any issues in comments or drop me an email. There is a library (WPSamples.Control.WatermarkedTextBox) and a test project which uses the library.
So to create an user control, all you’d need to do is: