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

Border on RadMaskedTextInput can't be decimal anymore

1 Answer 134 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
danparker276
Top achievements
Rank 2
danparker276 asked on 05 Feb 2014, 07:43 PM
 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.

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 10 Feb 2014, 05:12 PM
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:
<Grid>
    <Border BorderThickness="0.5" BorderBrush="Red" />
    <telerik:RadMaskedTextInput BorderThickness="0" Background="Transparent"  HorizontalAlignment="Stretch" />
</Grid>

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


Regards,
Sia
Telerik

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).

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
danparker276
Top achievements
Rank 2
Answers by
Sia
Telerik team
Share this question
or