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

Override Watermark Style

1 Answer 303 Views
WatermarkTextBox
This is a migrated thread and some comments may be shown as answers.
Jordan
Top achievements
Rank 1
Jordan asked on 15 Feb 2012, 06:32 PM
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?

1 Answer, 1 is accepted

Sort by
0
Jordan
Top achievements
Rank 1
answered on 16 Feb 2012, 08:09 PM
I updated to the latest controls and this seems to be working now.
Tags
WatermarkTextBox
Asked by
Jordan
Top achievements
Rank 1
Answers by
Jordan
Top achievements
Rank 1
Share this question
or