Opacity question

2 posts, 0 answers
  1. Oliver
    Oliver avatar
    263 posts
    Member since:
    Feb 2011

    Posted 16 May 2012 Link to this post

    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
  2. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 21 May 2012 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top