Posted
on Oct 25, 2009
(permalink)
I;m trying to use a style that I have that works for a TextBox with a RadMaskedTextBox, but I'm getting an error (undefined).
If I take out the bold section below it works, but without the needed formatting of course.
Basically I'm trying to make it have rounded corners.
<Style x:Key="TelerikMaskedTextBoxStyle" TargetType="telerikControlsInput:RadMaskedTextBox">
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Background" Value="#FFFFFFFF"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="FontFamily" Value="Tahoma"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="Foreground" Value="#FFFFFFFF"/>
<Setter Property="Height" Value="22"/>
<Setter Property="BorderBrush">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFA3AEB9" Offset="0"/>
<GradientStop Color="#FF8399A9" Offset="0.375"/>
<GradientStop Color="#FF718597" Offset="0.375"/>
<GradientStop Color="#FF617584" Offset="1"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="telerikControlsInput:RadMaskedTextBox">
<Grid x:Name="RootElement">
<Border x:Name="Border" Opacity="1" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="5,5,5,5" BorderBrush="Black" Background="#FF606060">
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>