WatermarkTextBox
The WatermarkTextBox will be removed in Catel v5.0. It is deprecated and replaced by the WatermarkTextBox in Orc.Controls.
The WatermarkTextBox allows to set a watermark on textboxes that do not yet have a value.
Setting up a simple watermark
A simple watermark is a watermark with text only. Below is an example:
<catel:WatermarkTextBox Watermark="Enter the first name" />
Setting up a complex watermark
A complex watermark is a watermark that can contain any control, for example an image:
<catel:WatermarkTextBox> <catel:WatermarkTextBox.Watermark> <StackPanel Orientation="Horizontal"> <Image Source="/Images/Address.png" /> <TextBlock Text="Enter the e-mail" /> </StackPanel> </catel:WatermarkTextBox.Watermark> </catel:WatermarkTextBox>