views:

861

answers:

4

I have an old demo project I am trying to dust off to run in Silverlight 3 and it cracks around the "Watermarkedtextbox" element. Anyone know how to get that back, or do I have to come up with another "cool" effect to get the water-mark effect?

A: 

The WatermarkedTextBox was removed in Silverlight 2 Beta 2. I believe a similar effect can be achieved using the Background property and an appropriate Brush.

Jeff Yates
+1  A: 

You can grab the source for the WatermarkedTextBox element from here. You can compile it, and then include the resulting DLL in your project, and it seems to work fine.

Ken Smith
+1  A: 

Tim Heuer blogged about it a while back: Silverlight 2 Watermarked TextBox Control

Gordon Mackie JoanMiro
+2  A: 

It lives and is built in still! But under a different name.

In the System.Windows.Controls assembly actually (in the Silverlight 2 and Silverlight 3 SDKs), in the System.Windows.Controls.Primitives namespace, is the "DatePickerTextBox" class.

This is actually the original WatermarkedTextBox, renamed, since it was only tested for primary use in the DatePicker control for now.

More information on the control is available in the DatePickerTextBox class reference on MSDN.

Jeff Wilcox
would have up-voted, but I can not until I get more reputation...anyway...thank you for the answer. Your solution worked.
NighTerrorX

related questions