This is a migrated thread and some comments may be shown as answers.

Opacity question

1 Answer 133 Views
WatermarkTextBox
This is a migrated thread and some comments may be shown as answers.
Oliver
Top achievements
Rank 1
Oliver asked on 16 May 2012, 04:44 PM
Hi,

I'm using the latest version of Telerik and I want to know if it's possible to have the "WatermarkContent" the same opacity than the RadDatePicker???

Thank's

1 Answer, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 21 May 2012, 12:55 PM
Hi Oliver,

You can manipulate the look of the WaterMark by using the DateTimeWaterMarkTemplate. Just set it like this:
<DataTemplate x:Key="WatermarkTemplate">
    <TextBlock Opacity="1" Text="{Binding}" />
</DataTemplate>
 
 
 
    <telerik:RadDateTimePicker  DateTimeWatermarkTemplate="{StaticResource WatermarkTemplate}" Width="100" />

You can set whatever you like properties to the TextBlock, so it suits your scenario.

Hope this helps. Let us know if you have further questions.

Greetings,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
WatermarkTextBox
Asked by
Oliver
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Share this question
or