Reputation:
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?
Upvotes: 2
Views: 1900
Reputation: 6385
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.
Upvotes: 7
Reputation: 3489
Tim Heuer blogged about it a while back: Silverlight 2 Watermarked TextBox Control
Upvotes: 2
Reputation: 20445
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.
Upvotes: 1
Reputation: 62387
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
.
Upvotes: 0