ComponentOne Input Library for WPF
Input Library Overview / FilePicker / Work with FilePicker / Removing Watermark
In This Topic
    Removing Watermark
    In This Topic

    The watermark appears in the text area of the C1FilePicker control by default and can give directions or suggestions for users at run time. You can customize the watermark text by setting the Watermark property to the value you want to appear.

    If you do not want a watermark to appear, you can set the Watermark property to a blank value, for example see the steps below.

    To set the Watermark property add Watermark="" to the <c1:C1FilePicker> tag so that it appears similar to the following:

    XAML
    Copy Code
    <c1:C1FilePicker Name="C1FilePicker1" Watermark="" HorizontalAlignment="Left" Margin="112,36,0,0" VerticalAlignment="Top" Width="161" />
    

    To set the Watermark property, add the following code to your project:

    Visual Basic
    Copy Code
    Me.C1FilePicker1.Watermark = ""
    

    C#
    Copy Code
    this.c1FilePicker1.Watermark = "";
    

    To set the Watermark property, complete the following steps:

    1. Click the C1FilePicker control once to select it.
    2. Navigate to the Properties window and locate the Watermark item.
    3. Click in the text box next to the Watermark item, and delete the current text.

    This will set the Watermark property to a blank value.

    Run the application, and observe that the caption bar of the C1FilePicker control will appear without the watermark: