ComponentOne Input Library for WPF
Input Library Overview / Masked Text Box / Work with MaskedTextBox / 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 <c1:C1MaskedTextBox> tag in the XAML markup for any C1MaskedTextBox control.

    XAML
    Copy Code
    <c1:C1MaskedTextBox Name="C1MaskedTextBox1" Watermark="Enter Text" Height="23" Margin="21,46,167,0" VerticalAlignment="Top" />
    

    The control will appear similar to the following at run time:

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