How to make all the watermarks in the application empty?

3 posts, 0 answers
  1. Sergi
    Sergi avatar
    34 posts
    Member since:
    Sep 2007

    Posted 10 Mar 2011 Link to this post

    I've tried creating an style but it's not working:

    <Style TargetType="{x:Type telerik:RadDatePicker}">
        <Setter Property="DateTimeWatermarkContent" Value="" />
    </Style>

    How can I create a style or make it easy so that I don't have to explicitly for each raddatepicker?

    Thanks in advance.
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 14 Mar 2011 Link to this post

    Hello Sergi,

    Follow the correct solution for the problem.

    <Style TargetType="{x:Type telerik:RadDateTimePicker}">
             <Setter Property="DateTimeWatermarkContent" Value="{x:Null}" />
    </Style>
      
      
    <telerik:RadDateTimePicker InputMode="DatePicker" />


    Kind regards,
    Kaloyan
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. UI for WPF is Visual Studio 2017 Ready
  4. Sergi
    Sergi avatar
    34 posts
    Member since:
    Sep 2007

    Posted 14 Mar 2011 Link to this post

    Thanks.
Back to Top