Override Watermark Style

2 posts, 0 answers
  1. Jordan
    Jordan avatar
    3 posts
    Member since:
    Oct 2012

    Posted 15 Feb 2012 Link to this post

    I'm trying to set a specific style of watermark but the control seems to ignore some settings. 

    For example if I set the FontStyle to Italic in the example below - it does not render as Italic.  However, changing the foreground color to crimson does work.

    <t:RadWatermarkTextBox x:Name="FirstNameTextBox"
                           Grid.Row="0"
                           Grid.Column="0"
                           VerticalAlignment="Center"
                           HorizontalAlignment="Stretch"
                           Text="{Binding FirstName}"
                           ToolTip="First Name"
                           >
        <t:RadWatermarkTextBox.WatermarkContent>
            <TextBlock FontStyle="Italic" Foreground="Crimson">First Name</TextBlock>
        </t:RadWatermarkTextBox.WatermarkContent>
    </t:RadWatermarkTextBox>

    Thoughts?
  2. Jordan
    Jordan avatar
    3 posts
    Member since:
    Oct 2012

    Posted 16 Feb 2012 Link to this post

    I updated to the latest controls and this seems to be working now.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top