I used the suggestion from the website and applied it to the RadMaskTextInput TextBoxStyle property. But now there is problem of the text being off centered in the RadMaskTextInput control as opposed to a RadMaskTextInput control without the TextBoxStyle being set. That is usually what happened when snippet of code of the web. The snippet may fix one problem but introduced a slew of other problems.
I set the TextBox Style's margin, padding, borderwidth to zero. This solved some of the visual problems that occurs when comparing how the text appears in a RadMaskTextInput with the TextBoxStyle being set asopposed to one that does not have the TextBoxStyle set.
I attached a picture and a simple program showing the how the text is positioned differently between the two RadMaskTextInput controls. The control with the TextBoxStyle set positions text all the way to left and higher then the text in a control without a TextBoxStyle set..
The attached program had to be sent with a jpg extension (WpfAppTextTrimRadMaskTextInput.jpg) After downloading this file change the extension to zip and then unzip the file and then you can access the simple wpf program .
Do you see any fixes that need to be done to the TextBox style so both text are positioned identically in both controls.