Styling the Watermark text

2 posts, 0 answers
  1. Scott
    Scott avatar
    2 posts
    Member since:
    Nov 2008

    Posted 02 Apr 2012 Link to this post


    I need to set the foreground color of the watermark to Silver or a shade of gray & font style to italic. And, I need the text (entered by user) to be in black & font style to be normal.

    How do I do this? I tried using the WatermarkTemplate but I'm not able to get the desired style. Please help me in this regard.

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 04 Apr 2012 Link to this post

    Hi Scott,

    You could use the following code:

    <!--TODO: Do your custom styling here. -->
    <telerik:RadWatermarkTextBox Foreground="Green" WatermarkContent="Enter your text here...">
                <!--TODO: Do your custom styling here. -->
                <TextBlock Foreground="Pink" Text="{Binding}" />

    I also attached the project I used to try it.

    Hope this helps.

    Miroslav Nedyalkov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft R3 2016 release webinar banner
Back to Top