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
2009-07-16 19:04:19
+1
A:
Tim Heuer blogged about it a while back: Silverlight 2 Watermarked TextBox Control
Gordon Mackie JoanMiro
2009-07-17 08:04:43
+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
2009-08-05 20:29:11
would have up-voted, but I can not until I get more reputation...anyway...thank you for the answer. Your solution worked.
NighTerrorX
2009-08-16 20:58:05