Basic Library Overview / Input for UWP / Working with Input for UWP / Working with C1MaskTextBox / Watermark
In This Topic
Watermark
In This Topic

Using the Watermark property you can provide contextual clues of what value users should enter in a C1MaskedTextBox control. The watermark is displayed in the control while not text has been entered. To add a watermark, add the text Watermark="Watermark Text" to the <Xaml:C1MaskedTextBox> tag in the XAML markup for any C1MaskedTextBox control.

So, for example, enter Watermark="Enter Text" to the <Xaml:C1MaskedTextBox> tag so that appears similar to the following:

Markup
Copy Code
<Xaml:C1MaskedTextBox Height="23" Width="120" Name="C1MaskedTextBox1" Watermark="Enter Text" />

If you click within the control and enter text, you will notice that the watermark disappears.

See Also