Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > MaskedTextBox > Style

Not answered Style

Feed from this thread
  • Voss Grose avatar

    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>

    Reply

  • Dimitrina Dimitrina admin's avatar

    Posted on Oct 28, 2009 (permalink)

    Hi Voss Grose,

    You can apply  a custom theme to any of  the controls. For more information you can follow the link below:
    http://www.telerik.com/help/silverlight/radcontrols-for-silverlight-expression-blend-support.html 

    Please find attached an example.

    If you have any further question please do not hesitate to ask.

    I hope this will help you.

    All the best,

    Dimitrina
    the Telerik team

     


    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

    Reply

  • Q1 Webinar Week
  • Voss Grose avatar

    Posted on Nov 16, 2009 (permalink)

    Does this mean you cannot apply a custom style?

    Reply

  • Dimitrina Dimitrina admin's avatar

    Posted on Nov 19, 2009 (permalink)

    Hello Voss Grose,

    The last sample I sent was indeed applying a custom style to the control. Can you please explain with a bit more details what exactly you want to do? It seems I misunderstood what you mean by custom style.

    Regards,
    Dimitrina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > MaskedTextBox > Style
Related resources for "Style"

Silverlight MaskedTextBox Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]