WatermarkTextBox Properties

The RadFilePathPicker has a RadWatermarkTextBox element inside it, which is responsible for holding the text. This article will list the properties that the control exposes for working with the RadWatermarkTextBox.

WatermarkContent

The WatermarkContent property of the control sets the WatermarkContent of the RadWatermarkTextBox.

Example 1: Setting the WatermarkContent

<telerik:RadFilePathPicker WatermarkContent="Select a file!" /> 

Figure 1: RadFilePathPicker with WatermarkContent

RadFilePathPicker with WatermarkContent

WatermarkTemplate

The WatermarkTemplate property of the control sets the WatermarkTemplate of the RadWatermarkTextBox.

Example 2: Setting the WatermarkTemplate

<StackPanel> 
    <StackPanel.Resources> 
        <DataTemplate x:Key="WatermarkTemplate"> 
            <StackPanel Orientation="Horizontal"> 
                <TextBlock Text="{Binding}" Margin="0 0 5 0" /> 
                <telerik:RadGlyph Glyph="&#xe403;" Foreground="Red"/> 
            </StackPanel> 
        </DataTemplate> 
    </StackPanel.Resources> 
    <telerik:RadFilePathPicker WatermarkContent="Select a file" WatermarkTemplate="{StaticResource WatermarkTemplate}" /> 
</StackPanel> 

Figure 2: RadFilePathPicker with WatermarkTemplate

RadFilePathPicker with WatermarkTemplate

EditorVisibility

The EditorVisibility property controls the Visibility of the RadWatermarkTextbox.

Example 3: Setting the WatermarkTemplate property

<telerik:RadFilePathPicker EditorVisibility="Collapsed" /> 

See Also

In this article
Not finding the help you need? Improve this article