Border on RadMaskedTextInput can't be decimal anymore

2 posts, 0 answers
  1. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 05 Feb 2014 Link to this post

     I updated my WPF controls and now my border is blank when I set my border thickness to 0.5, the border is blank, or doesn't show.

      myMaskedTextBox.BorderThickness =  new Thickness(0.5);

    if do: 
      myMaskedTextBox.BorderThickness =  new Thickness(1);  it's ok, but thicker than I want.

  2. Sia
    Sia avatar
    667 posts

    Posted 10 Feb 2014 Link to this post

    Hello Dan,

    The described behavior is observed because in our template there is SnapsToDevicePixels set to True. Unfortunately this is needed to prevent the border from blurring.
    That is why there are only two options:
    1. You need to re-template the RadMaskedTextInput control and remove this setting in its ControlTemplate
    2. or you need to remove its default border and use your own below the main control:
        <Border BorderThickness="0.5" BorderBrush="Red" />
        <telerik:RadMaskedTextInput BorderThickness="0" Background="Transparent"  HorizontalAlignment="Stretch" />

    However I would suggest you to use a lighter red color for border brush to achieve the look that you need.


    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

  3. DevCraft banner
Back to Top