ComponentOne Basic Library for WPF and Silverlight
Removing a Watermark
WPF and Silverlight Edition Basic Library > FilePicker > FilePicker Elements > Removing a Watermark

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:

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

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

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

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: