Hi there...
I'm a noob at silverlight. I'm trying to change the style of a watermarked textbox, but i'm getting the error: "{StaticResource wtbtmplate} is out of range". What's the problem? What i'm doing wrong?
Page.xaml:
<WatermarkedTextBox Template="{StaticResource wtbTemplate}" Height="96" Width="19" FontFamily="Verdana" FontSize="36" />
App.xaml:
Here i have the default style and template for the watermarkedTextBox control (Present in silverlight documentation - March 2008):
<Style TargetType="WatermarkedTextBox" x:Key="wtbTemplate">
<Setter Property="BorderBrush" Value="#FF000000"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="FontFamily" Value="Trebuchet MS"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="WatermarkedTextBox">
<Grid x:Name="RootElement" >
...
</Style>
Hope you can help, and sorry if this a stupid question...
Thanks